| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.2"?> |
| <!-- |
| Copyright (c) 2007, 2011 Oracle. All rights reserved. |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v1.0, which accompanies this distribution |
| and is available at http://www.eclipse.org/legal/epl-v10.html. |
| |
| Contributors: |
| Oracle - initial API and implementation |
| --> |
| |
| <plugin> |
| |
| <extension |
| point="org.eclipse.jpt.jaxb.ui.jaxbPlatformUis"> |
| |
| <jaxbPlatformUi |
| id="eclipselink_2_1.ui" |
| jaxbPlatform="eclipselink_2_1" |
| class="org.eclipse.jpt.jaxb.eclipselink.ui.internal.v2_1.ELJaxb_2_1_PlatformUi"/> |
| |
| <jaxbPlatformUi |
| id="eclipselink_2_2.ui" |
| jaxbPlatform="eclipselink_2_2" |
| class="org.eclipse.jpt.jaxb.eclipselink.ui.internal.v2_2.ELJaxb_2_2_PlatformUi"/> |
| |
| <jaxbPlatformUi |
| id="eclipselink_2_3.ui" |
| jaxbPlatform="eclipselink_2_3" |
| class="org.eclipse.jpt.jaxb.eclipselink.ui.internal.v2_3.ELJaxb_2_3_PlatformUi"/> |
| |
| <jaxbPlatformUi |
| id="eclipselink_2_4.ui" |
| jaxbPlatform="eclipselink_2_4" |
| class="org.eclipse.jpt.jaxb.eclipselink.ui.internal.v2_4.ELJaxb_2_4_PlatformUi"/> |
| |
| </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> |