| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (c) 2007, 2013 Oracle. All rights reserved. |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License 2.0, which accompanies this distribution |
| and is available at http://www.eclipse.org/legal/epl-2.0/. |
| |
| Contributors: |
| Oracle - initial API and implementation |
| --> |
| |
| <plugin> |
| |
| <!-- ***** JPA platform UIs ***** --> |
| |
| <extension |
| point="org.eclipse.jpt.jpa.ui.jpaPlatformUis"> |
| |
| <jpaPlatformUi |
| id="org.eclipse.eclipselink.platform.ui" |
| jpaPlatform="org.eclipse.eclipselink.platform" |
| factoryClass="org.eclipse.jpt.jpa.eclipselink.ui.internal.platform.EclipseLinkJpaPlatformUiFactory"/> |
| |
| <jpaPlatformUi |
| id="eclipselink1_1.ui" |
| jpaPlatform="eclipselink1_1" |
| factoryClass="org.eclipse.jpt.jpa.eclipselink.ui.internal.platform.EclipseLinkJpaPlatformUiFactory1_1"/> |
| |
| <jpaPlatformUi |
| id="eclipselink1_2.ui" |
| jpaPlatform="eclipselink1_2" |
| factoryClass="org.eclipse.jpt.jpa.eclipselink.ui.internal.platform.EclipseLinkJpaPlatformUiFactory1_2"/> |
| |
| <jpaPlatformUi |
| id="eclipselink2_0.ui" |
| jpaPlatform="eclipselink2_0" |
| factoryClass="org.eclipse.jpt.jpa.eclipselink.ui.internal.platform.EclipseLinkJpaPlatformUiFactory2_0"/> |
| |
| <jpaPlatformUi |
| id="eclipselink2_1.ui" |
| jpaPlatform="eclipselink2_1" |
| factoryClass="org.eclipse.jpt.jpa.eclipselink.ui.internal.platform.EclipseLinkJpaPlatformUiFactory2_1"/> |
| |
| <jpaPlatformUi |
| id="eclipselink2_2.ui" |
| jpaPlatform="eclipselink2_2" |
| factoryClass="org.eclipse.jpt.jpa.eclipselink.ui.internal.platform.EclipseLinkJpaPlatformUiFactory2_2"/> |
| |
| <jpaPlatformUi |
| id="eclipselink2_3.ui" |
| jpaPlatform="eclipselink2_3" |
| factoryClass="org.eclipse.jpt.jpa.eclipselink.ui.internal.platform.EclipseLinkJpaPlatformUiFactory2_3"/> |
| |
| <jpaPlatformUi |
| id="eclipselink2_4.ui" |
| jpaPlatform="eclipselink2_4" |
| factoryClass="org.eclipse.jpt.jpa.eclipselink.ui.internal.platform.EclipseLinkJpaPlatformUiFactory2_4"/> |
| |
| <jpaPlatformUi |
| id="eclipselink2_5.ui" |
| jpaPlatform="eclipselink2_5" |
| factoryClass="org.eclipse.jpt.jpa.eclipselink.ui.internal.platform.EclipseLinkJpaPlatformUiFactory2_5"/> |
| |
| </extension> |
| |
| |
| <!-- ***** "New Dialog" wizards ***** --> |
| |
| <extension |
| point="org.eclipse.ui.newWizards"> |
| |
| <category |
| id="org.eclipse.jpt.jpa.eclipselink" |
| name="%eclipseLinkWizardCategoryName" |
| parentCategory="org.eclipse.jpt.jpa"/> |
| |
| <wizard |
| id="org.eclipse.jpt.jpa.eclipselink.ui.wizard.newEclipseLinkMappingFile" |
| name="%newEclipseLinkMappingFileWizardName" |
| icon="platform:/plugin/org.eclipse.jpt.jpa.ui/$nl$/images/buttons/new-jpa-file.gif" |
| category="org.eclipse.jpt.jpa/org.eclipse.jpt.jpa.eclipselink"> |
| <description>%newEclipseLinkJpaMappingFileWizardDesc</description> |
| <class class="org.eclipse.jpt.jpa.eclipselink.ui.internal.wizards.EclipseLinkMappingFileWizard"> |
| <parameter name="javaeeartifact" value="true"/> |
| <parameter name="menuIndex" value="40" /> |
| <parameter name="jptartifact" value="true"/> |
| </class> |
| </wizard> |
| |
| <wizard |
| id="org.eclipse.jpt.jpa.eclipselink.ui.wizard.newDynamicEntitiesFromTables" |
| name="%newDynamicEntityFromTableWizardName" |
| icon="platform:/plugin/org.eclipse.jpt.jpa.ui/$nl$/images/buttons/new-jpa-file.gif" |
| category="org.eclipse.jpt.jpa/org.eclipse.jpt.jpa.eclipselink" |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.wizards.gen.EclipseLinkGenerateDynamicEntitiesFromSchemaWizard"> |
| <description>%newDynamicEntityFromTableWizardDesc</description> |
| <selection class="org.eclipse.core.resources.IResource"/> |
| </wizard> |
| |
| <wizard |
| id="org.eclipse.jpt.jpa.eclipselink.ui.wizard.newEclipseLinkDynamicEntity" |
| name="%newEclipseLinkDynamicEntityName" |
| icon="platform:/plugin/org.eclipse.jpt.jpa.ui/$nl$/images/buttons/new-entity.gif" |
| category="org.eclipse.jpt.jpa/org.eclipse.jpt.jpa.eclipselink"> |
| <description>%newEclipseLinkDynamicEntityWizardDesc</description> |
| <class class="org.eclipse.jpt.jpa.eclipselink.ui.internal.wizards.EclipseLinkDynamicEntityWizard"> |
| <parameter name="javaeeartifact" value="true"/> |
| <parameter name="menuIndex" value="41" /> |
| <parameter name="jptartifact" value="true"/> |
| </class> |
| </wizard> |
| |
| </extension> |
| |
| |
| <!-- ***** navigator content ***** --> |
| |
| <extension |
| point="org.eclipse.ui.navigator.navigatorContent"> |
| |
| <commonWizard |
| menuGroupId="org.eclipse.jpt.jpa.ui" |
| type="new" |
| wizardId="org.eclipse.jpt.jpa.eclipselink.ui.wizard.newEclipseLinkMappingFile"> |
| <enablement> |
| <and> |
| <or> |
| <instanceof value="org.eclipse.core.resources.IProject"/> |
| <instanceof value="org.eclipse.core.resources.IFolder"/> |
| <instanceof value="org.eclipse.jdt.core.IPackageFragmentRoot"/> |
| <instanceof value="org.eclipse.jdt.core.IPackageFragment"/> |
| </or> |
| <adapt type="org.eclipse.core.resources.IResource"> |
| <reference definitionId="org.eclipse.jpt.jpa.expression.hasJpaFacet"/> |
| </adapt> |
| <adapt type="org.eclipse.jpt.jpa.core.JpaPlatform$Config"> |
| <reference definitionId="org.eclipse.jpt.jpa.eclipselink.expression.jpaPlatformIsEclipseLink"/> |
| </adapt> |
| </and> |
| </enablement> |
| </commonWizard> |
| |
| <commonWizard |
| menuGroupId="org.eclipse.jpt.jpa.ui" |
| type="new" |
| wizardId="org.eclipse.jpt.jpa.eclipselink.ui.wizard.newEclipseLinkDynamicEntity"> |
| <enablement> |
| <and> |
| <or> |
| <instanceof value="org.eclipse.core.resources.IProject"/> |
| <instanceof value="org.eclipse.jdt.core.IPackageFragmentRoot"/> |
| <instanceof value="org.eclipse.jdt.core.IPackageFragment"/> |
| </or> |
| <adapt type="org.eclipse.core.resources.IResource"> |
| <reference definitionId="org.eclipse.jpt.jpa.expression.hasJpaFacet"/> |
| </adapt> |
| <adapt type = "org.eclipse.jpt.jpa.core.JpaPlatform$Config"> |
| <reference definitionId="org.eclipse.jpt.jpa.eclipselink.expression.jpaPlatformIsEclipseLink"/> |
| <not> |
| <test property="org.eclipse.jpt.jpa.core.jpaPlatform" |
| value="org.eclipse.eclipselink.platform"/> |
| </not> |
| <not> |
| <test property="org.eclipse.jpt.jpa.core.jpaPlatform" |
| value="eclipselink1_1"/> |
| </not> |
| <not> |
| <test property="org.eclipse.jpt.jpa.core.jpaPlatform" |
| value="eclipselink1_2"/> |
| </not> |
| <not> |
| <test property="org.eclipse.jpt.jpa.core.jpaPlatform" |
| value="eclipselink2_0"/> |
| </not> |
| </adapt> |
| </and> |
| </enablement> |
| </commonWizard> |
| |
| </extension> |
| |
| |
| <!-- ***** JPA Perspective ***** --> |
| |
| <extension |
| point="org.eclipse.ui.perspectiveExtensions"> |
| |
| <perspectiveExtension |
| targetID="org.eclipse.jpt.ui.jpaPerspective"> |
| <newWizardShortcut id="org.eclipse.jpt.jpa.eclipselink.ui.wizard.newEclipseLinkMappingFile"/> |
| </perspectiveExtension> |
| |
| <perspectiveExtension |
| targetID="org.eclipse.jpt.ui.jpaPerspective"> |
| <newWizardShortcut id="org.eclipse.jpt.jpa.eclipselink.ui.wizard.newEclipseLinkDynamicEntity"/> |
| </perspectiveExtension> |
| |
| </extension> |
| |
| |
| <!-- ***** preferences ***** --> |
| |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| |
| <page |
| id="org.eclipse.jpt.jpa.eclipselink.ui.jpaProblemSeveritiesPreferences" |
| name="%eclipseLinkJpaProblemSeveritiesPreferencesNode" |
| category="org.eclipse.jpt.jpa.ui.jpaProblemSeveritiesPreferences" |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.prefs.EclipseLinkJpaProblemSeveritiesPage"/> |
| |
| </extension> |
| |
| |
| <!-- ***** JPA project properties pages ***** --> |
| |
| <extension |
| point="org.eclipse.ui.propertyPages"> |
| |
| <page |
| id="org.eclipse.jpt.jpa.eclipselink.ui.eclipseLinkProjectProperties" |
| name="%eclipseLinkNode" |
| category="org.eclipse.jpt.jpa.ui.jpaProjectProperties" |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.prefs.EclipseLinkPreferencePage"> |
| <enabledWhen> |
| <and> |
| <adapt type="org.eclipse.core.resources.IProject"> |
| <reference definitionId="org.eclipse.jpt.jpa.expression.hasJpaFacet"/> |
| </adapt> |
| <!-- if the o.e.jpt.jpa.core plug-in is not loaded yet, |
| this will result in true and properties page will appear for a non-eclipselink platform project --> |
| <adapt type="org.eclipse.jpt.jpa.core.JpaPlatform$Config"> |
| <reference definitionId="org.eclipse.jpt.jpa.eclipselink.expression.jpaPlatformIsEclipseLink"/> |
| </adapt> |
| </and> |
| </enabledWhen> |
| </page> |
| |
| <page |
| id="org.eclipse.jpt.jpa.eclipselink.ui.jpaProblemSeveritiesProperties" |
| name="%eclipseLinkJpaProblemSeveritiesPropertiesNode" |
| category="org.eclipse.jpt.jpa.eclipselink.ui.eclipseLinkProjectProperties" |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.prefs.EclipseLinkJpaProblemSeveritiesPage"> |
| <enabledWhen> |
| <and> |
| <adapt type="org.eclipse.core.resources.IProject"> |
| <reference definitionId="org.eclipse.jpt.jpa.expression.hasJpaFacet"/> |
| </adapt> |
| <!-- if the o.e.jpt.jpa.core plug-in is not loaded yet, |
| this will result in true and properties page will appear for a non-eclipselink platform project --> |
| <adapt type="org.eclipse.jpt.jpa.core.JpaPlatform$Config"> |
| <reference definitionId="org.eclipse.jpt.jpa.eclipselink.expression.jpaPlatformIsEclipseLink"/> |
| </adapt> |
| </and> |
| </enabledWhen> |
| </page> |
| |
| </extension> |
| |
| |
| <!-- ***** commands ***** --> |
| |
| <extension |
| point="org.eclipse.ui.commands"> |
| |
| <command |
| id="org.eclipse.jpt.jpa.eclipselink.ui.newEclipseLinkMappingFile" |
| name="%newEclipseLinkMappingFileWizardName"> |
| </command> |
| |
| <command |
| id="org.eclipse.jpt.jpa.eclipselink.ui.newDynamicEntity" |
| name="%newEclipseLinkDynamicEntityName"> |
| </command> |
| |
| <command |
| id="org.eclipse.jpt.jpa.eclipselink.ui.persistentTypeAddVirtualAttribute" |
| name="%addVirtualAttribute" |
| categoryId="org.eclipse.jpt.jpa.ui.jpaStructureViewCommands"/> |
| |
| <command |
| id="org.eclipse.jpt.jpa.eclipselink.ui.convertJavaConverters" |
| name="%moveJavaConvertersToXML" |
| categoryId="org.eclipse.jpt.jpa.ui.jpaMetadataConversionCommands"/> |
| |
| <command |
| id="org.eclipse.jpt.jpa.eclipselink.ui.generateDynamicEntities" |
| name="%generateDynamicEntities"/> |
| |
| <command |
| id="org.eclipse.jpt.jpa.eclipselink.ui.upgradeToEclipseLinkMappingFile" |
| name="%upgradeToEclipseLinkMappingFile"> |
| </command> |
| |
| </extension> |
| |
| |
| <!-- ***** handlers ***** --> |
| |
| <extension |
| point="org.eclipse.ui.handlers"> |
| |
| <handler |
| commandId="org.eclipse.jpt.jpa.eclipselink.ui.newEclipseLinkMappingFile" |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.handlers.EclipseLinkNewMappingFileHandler"> |
| </handler> |
| |
| <handler |
| commandId="org.eclipse.jpt.jpa.eclipselink.ui.newDynamicEntity" |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.handlers.EclipseLinkNewDynamicEntityHandler"> |
| </handler> |
| |
| <handler |
| commandId="org.eclipse.jpt.jpa.eclipselink.ui.persistentTypeAddVirtualAttribute" |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.handlers.EclipseLinkAddVirtualAttributeHandler"> |
| <activeWhen> |
| <and> |
| <reference definitionId="org.eclipse.jpt.jpa.ui.expression.jpaStructureViewIsActive"/> |
| <with variable="selection"> |
| <count value="1"/> |
| <iterate> |
| <instanceof value="org.eclipse.jpt.jpa.eclipselink.core.context.orm.EclipseLinkOrmPersistentType"/> |
| <test property="org.eclipse.jpt.common.core.resourceTypeIsKindOf" |
| value="org.eclipse.jpt.jpa.eclipselink.core.content.orm:2.1"/> |
| </iterate> |
| </with> |
| </and> |
| </activeWhen> |
| </handler> |
| |
| <handler |
| commandId="org.eclipse.jpt.jpa.eclipselink.ui.convertJavaConverters" |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.commands.EclipseLinkJavaConverterConversionHandler"> |
| <activeWhen> |
| <with variable="selection"> |
| <count value="1"/> |
| <iterate> |
| <adapt type="org.eclipse.core.resources.IProject"> |
| <reference definitionId="org.eclipse.jpt.jpa.expression.hasJpaFacet"/> |
| </adapt> |
| <!-- if the o.e.jpt.jpa.core plug-in is not loaded yet, |
| this will result in true and the command will appear in the Quick Access --> |
| <adapt type="org.eclipse.jpt.jpa.core.JpaPlatform$Config"> |
| <reference definitionId="org.eclipse.jpt.jpa.eclipselink.expression.jpaPlatformIsEclipseLink"/> |
| </adapt> |
| </iterate> |
| </with> |
| </activeWhen> |
| </handler> |
| |
| <handler |
| commandId="org.eclipse.jpt.jpa.eclipselink.ui.generateDynamicEntities" |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.commands.EclipseLinkGenerateDynamicEntitiesHandler"> |
| <activeWhen> |
| <with variable="selection"> |
| <count value="1"/> |
| <iterate> |
| <adapt type="org.eclipse.core.resources.IProject"> |
| <reference definitionId="org.eclipse.jpt.jpa.expression.hasJpaFacet"/> |
| </adapt> |
| <!-- if the o.e.jpt.jpa.core plug-in is not loaded yet, |
| this will result in true and the command will appear in the Quick Access --> |
| <adapt type="org.eclipse.jpt.jpa.core.JpaPlatform$Config"> |
| <reference definitionId="org.eclipse.jpt.jpa.eclipselink.expression.jpaPlatformIsEclipseLink"/> |
| </adapt> |
| </iterate> |
| </with> |
| </activeWhen> |
| </handler> |
| |
| <handler |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.commands.EclipseLinkUpgradeXmlResourceToMappingFileHandler" |
| commandId="org.eclipse.jpt.jpa.eclipselink.ui.upgradeToEclipseLinkMappingFile"> |
| |
| <activeWhen> |
| <iterate ifEmpty="false"> |
| <!-- if the o.e.jpt.jpa.core plug-in is not loaded yet, |
| this will result in true and the command will appear in the Quick Access --> |
| <adapt type="org.eclipse.jpt.jpa.core.JpaPlatform$Config"> |
| <reference definitionId="org.eclipse.jpt.jpa.eclipselink.expression.jpaPlatformIsEclipseLink"/> |
| </adapt> |
| <adapt type="org.eclipse.jpt.common.core.resource.xml.JptXmlResource"> |
| <test property="org.eclipse.jpt.jpa.core.isGenericMappingFile"/> |
| </adapt> |
| </iterate> |
| </activeWhen> |
| </handler> |
| |
| <handler |
| class="org.eclipse.jpt.jpa.eclipselink.ui.internal.commands.EclipseLinkUpgradeXmlFileToMappingFileHandler" |
| commandId="org.eclipse.jpt.jpa.eclipselink.ui.upgradeToEclipseLinkMappingFile"> |
| |
| <activeWhen> |
| <iterate ifEmpty="false"> |
| <!-- if the o.e.jpt.jpa.core plug-in is not loaded yet, |
| this will result in true and the command will appear in the Quick Access --> |
| <adapt type="org.eclipse.jpt.jpa.core.JpaPlatform$Config"> |
| <reference definitionId="org.eclipse.jpt.jpa.eclipselink.expression.jpaPlatformIsEclipseLink"/> |
| </adapt> |
| <adapt type="org.eclipse.jpt.jpa.core.context.XmlFile"> |
| <test property="org.eclipse.jpt.jpa.core.isGenericMappingFile"/> |
| </adapt> |
| </iterate> |
| </activeWhen> |
| </handler> |
| |
| </extension> |
| |
| |
| <!-- ***** menus ***** --> |
| |
| <extension |
| point="org.eclipse.ui.menus"> |
| |
| <!-- contributions to the JptCreation pulldown --> |
| <menuContribution |
| locationURI="menu:org.eclipse.jpt.jpa.ui.jptCreation.pulldown?after=jptCreation.separator"> |
| |
| <command |
| commandId="org.eclipse.jpt.jpa.eclipselink.ui.newEclipseLinkMappingFile" |
| label="%newEclipseLinkMappingFileWizardName" |
| icon="platform:/plugin/org.eclipse.jpt.jpa.ui/$nl$/images/buttons/new-jpa-file.gif" |
| disabledIcon="platform:/plugin/org.eclipse.jpt.jpa.ui/$nl$/images/buttons/new-jpa-file.gif" |
| style="push"> |
| </command> |
| |
| <command |
| commandId="org.eclipse.jpt.jpa.eclipselink.ui.newDynamicEntity" |
| label="%newEclipseLinkDynamicEntityName" |
| icon="platform:/plugin/org.eclipse.jpt.jpa.ui/$nl$/images/buttons/new-entity.gif" |
| disabledIcon="platform:/plugin/org.eclipse.jpt.jpa.ui/$nl$/images/buttons/new-entity.gif" |
| style="push"> |
| </command> |
| |
| </menuContribution> |
| |
| <!-- contributions to the "JPA Tools" submenu --> |
| <menuContribution |
| locationURI="popup:org.eclipse.jpt.jpa.ui.menu.JpaTools?after=generate"> |
| |
| <command commandId="org.eclipse.jpt.jpa.eclipselink.ui.generateDynamicEntities"> |
| <visibleWhen checkEnabled="true"/> |
| </command> |
| |
| <command commandId="org.eclipse.jpt.jpa.eclipselink.ui.upgradeToEclipseLinkMappingFile"> |
| <visibleWhen> |
| <iterate ifEmpty="false"> |
| <adapt type="org.eclipse.jpt.common.core.resource.xml.JptXmlResource"> |
| <test property="org.eclipse.jpt.jpa.core.isGenericMappingFile"/> |
| </adapt> |
| <adapt type="org.eclipse.jpt.jpa.core.JpaPlatform$Config"> |
| <reference definitionId="org.eclipse.jpt.jpa.eclipselink.expression.jpaPlatformIsEclipseLink"/> |
| </adapt> |
| </iterate> |
| </visibleWhen> |
| </command> |
| |
| </menuContribution> |
| |
| <!-- contributions to objects in the JPA structure view --> |
| <menuContribution |
| locationURI="popup:org.eclipse.jpt.ui.jpaStructureView"> |
| |
| <command commandId="org.eclipse.jpt.jpa.eclipselink.ui.persistentTypeAddVirtualAttribute"> |
| <visibleWhen checkEnabled="true"/> |
| </command> |
| |
| </menuContribution> |
| |
| <!-- contributions to "Move to XML" submenu--> |
| <menuContribution |
| locationURI="popup:org.eclipse.jpt.jpa.ui.menu.moveToXml"> |
| |
| <command |
| commandId="org.eclipse.jpt.jpa.eclipselink.ui.convertJavaConverters" |
| label="%convertJavaConverters"> |
| <visibleWhen checkEnabled="true"/> |
| </command> |
| |
| </menuContribution> |
| |
| <!-- contributions for any popup --> |
| <menuContribution |
| locationURI="popup:org.eclipse.ui.popup.any"> |
| |
| <command commandId="org.eclipse.jpt.jpa.eclipselink.ui.upgradeToEclipseLinkMappingFile"> |
| <visibleWhen> |
| <iterate ifEmpty="false"> |
| <adapt type="org.eclipse.jpt.jpa.core.context.XmlFile"> |
| <test property="org.eclipse.jpt.jpa.core.isGenericMappingFile"/> |
| </adapt> |
| <adapt type="org.eclipse.jpt.jpa.core.JpaPlatform$Config"> |
| <reference definitionId="org.eclipse.jpt.jpa.eclipselink.expression.jpaPlatformIsEclipseLink"/> |
| </adapt> |
| </iterate> |
| </visibleWhen> |
| </command> |
| |
| </menuContribution> |
| |
| </extension> |
| |
| </plugin> |