diff options
Diffstat (limited to 'jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.ui/plugin.xml')
-rw-r--r-- | jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.ui/plugin.xml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.ui/plugin.xml b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.ui/plugin.xml index 012d4a44db..938f8a981b 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.ui/plugin.xml +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.ui/plugin.xml @@ -37,4 +37,66 @@ </extension> + + <extension + point="org.eclipse.ui.commands"> + + <command + id="org.eclipse.jpt.jaxb.eclipselink.ui.command.addEclipseLinkJaxbProperty" + name="%addEclipseLinkJaxbPropertyCommand"/> + + </extension> + + + <extension + point="org.eclipse.ui.handlers"> + + <handler + commandId="org.eclipse.jpt.jaxb.eclipselink.ui.command.addEclipseLinkJaxbProperty" + class="org.eclipse.jpt.jaxb.eclipselink.ui.internal.commands.AddEclipseLinkJaxbPropertyCommandHandler"> + <enabledWhen> + <iterate ifEmpty="false"> + <adapt type="org.eclipse.jpt.jaxb.core.context.JaxbPackage"> + <test + property="org.eclipse.jpt.jaxb.eclipselink.core.hasEclipseLinkJaxbProperty" + value="false"/> + </adapt> + </iterate> + </enabledWhen> + </handler> + + </extension> + + + <extension + point="org.eclipse.ui.menus"> + + <!-- contributions to the JAXB menu --> + <menuContribution + locationURI="popup:org.eclipse.jpt.jaxb.ui.menu.jaxb"> + + <!-- + "Add EclipseLink JAXB property" menu item for any JaxbPackage + that does not already have one + --> + <command + commandId="org.eclipse.jpt.jaxb.eclipselink.ui.command.addEclipseLinkJaxbProperty"> + <visibleWhen> + <with + variable="selection"> + <iterate ifEmpty="false"> + <adapt type="org.eclipse.jpt.jaxb.core.context.JaxbPackage"> + <test + property="org.eclipse.jpt.jaxb.eclipselink.core.hasEclipseLinkJaxbProperty" + value="false"/> + </adapt> + </iterate> + </with> + </visibleWhen> + </command> + + </menuContribution> + + </extension> + </plugin> |