blob: c6db5d0ab4925c3aee8b20f1bf67a227a48bf91d [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension-point id="org.eclipse.emf.ecp.navigator.menuconfiguration" name="Menu Configuration" schema="schema/org.eclipse.emf.ecp.navigator.menuconfiguration.exsd"/>
<extension-point id="org.eclipse.emf.ecp.navigator.replaceContentProvider" name="Replace Content Provider" schema="schema/org.eclipse.emf.ecp.navigator.replaceContentProvider.exsd"/>
<extension-point id="org.eclipse.emf.ecp.navigator.replaceLabelProvider" name="Replace Label Provider" schema="schema/org.eclipse.emf.ecp.navigator.replaceLabelProvider.exsd"/>
<extension
point="org.eclipse.ui.views">
<view
category="org.eclipse.emf.ecp"
class="org.eclipse.emf.ecp.navigator.TreeView"
icon="icons/unicase.png"
id="org.eclipse.emf.ecp.navigator.viewer"
name="Navigator"
restorable="true">
</view>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
id="org.eclipse.emf.ecp.navigator.project"
name="Project and Model Element Commands">
</category>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.emf.ecp.navigator.viewer?after=additions">
<dynamic
class="org.eclipse.emf.ecp.navigator.commands.DynamicContainmentCommands"
id="org.eclipse.emf.ecp.navigator.dynamicMECreationCommands">
<visibleWhen
checkEnabled="false">
<and>
<iterate
ifEmpty="false"
operator="and">
<or>
<instanceof
value="org.eclipse.emf.ecore.EObject">
</instanceof>
<test
args="ContainmentCreationActions"
forcePluginActivation="true"
property="org.eclipse.emf.ecp.navigator.isActionEnabled"
value="true">
</test>
</or>
</iterate>
<count
value="1">
</count>
<test
args="org.eclipse.emf.ecp.navigator.dynamicMECreationCommands"
property="org.eclipse.emf.ecp.common.menuContributionsEnablement"
value="true">
</test>
</and>
</visibleWhen>
</dynamic>
</menuContribution>
<menuContribution
locationURI="popup:org.eclipse.emf.ecp.navigator.viewer?after=additions">
<command
commandId="org.eclipse.emf.ecp.navigator.exportModel"
icon="icons/database_go.png"
label="Export Model Element"
style="push">
<visibleWhen
checkEnabled="false">
<and>
<iterate>
<and>
<instanceof
value="org.eclipse.emf.ecore.EObject">
</instanceof>
<test
args="org.eclipse.emf.ecp.navigator.exportModel"
property="org.eclipse.emf.ecp.common.menuContributionsEnablement"
value="true">
</test>
</and>
</iterate>
<test
args="org.eclipse.emf.ecp.navigator.exportModel"
property="org.eclipse.emf.ecp.common.menuContributionsEnablement"
value="true">
</test>
</and>
</visibleWhen>
</command>
<command
commandId="org.eclipse.emf.ecp.navigator.importModel"
icon="icons/folder_go.png"
label="Import Model Element"
style="push">
<visibleWhen
checkEnabled="false">
<and>
<iterate>
<and>
<instanceof
value="org.eclipse.emf.ecore.EObject">
</instanceof>
<test
args="org.eclipse.emf.ecp.navigator.importModel"
property="org.eclipse.emf.ecp.common.menuContributionsEnablement"
value="true">
</test>
</and>
</iterate>
<test
args="org.eclipse.emf.ecp.navigator.importModel"
property="org.eclipse.emf.ecp.common.menuContributionsEnablement"
value="true">
</test>
</and>
</visibleWhen>
</command>
<separator
name="org.eclipse.emf.ecp.navigator.exportImportSeperator"
visible="true">
</separator>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.emf.ecp.navigator.viewer?before=additions">
<command
commandId="org.eclipse.emf.ecp.common.handlers.open_me_ID"
icon="icons/magnifier.png"
id="SearchElementButon"
style="push"
tooltip="Search for model element">
<visibleWhen
checkEnabled="false">
<and>
<iterate>
<and>
<instanceof
value="org.eclipse.emf.ecore.EObject">
</instanceof>
<test
args="org.eclipse.emf.ecp.navigator.importModel"
property="org.eclipse.emf.ecp.common.menuContributionsEnablement"
value="true">
</test>
</and>
</iterate>
<test
args="org.eclipse.emf.ecp.common.handlers.open_me_ID"
property="org.eclipse.emf.ecp.common.menuContributionsEnablement"
value="true">
</test>
</and>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.emf.ecp.navigator"
defaultHandler="org.eclipse.emf.ecp.navigator.handler.DeleteModelelementHandler"
id="org.eclipse.emf.ecp.common.deleteModelelement"
name="Delete Modelelement">
</command>
<command
categoryId="org.eclipse.emf.ecp.navigator"
defaultHandler="org.eclipse.emf.ecp.navigator.handler.NewModelElementWizardHandler"
id="org.eclipse.emf.ecp.navigator.newModelElementWizard"
name="New ModelElement Wizard">
<commandParameter
id="org.eclipse.emf.ecp.navigator.eClassParameter"
name="eClassParameter"
optional="true"
typeId="org.eclipse.emf.ecp.navigator.eClassType">
</commandParameter>
</command>
<command
defaultHandler="org.eclipse.emf.ecp.common.handler.CreateContainmentHandler"
description="This generic command is used by dynamic commands to create containment MEs"
id="org.eclipse.emf.ecp.navigator.createContaiment"
name="New Containment ME">
<commandParameter
id="org.eclipse.emf.ecp.navigator.eClassParameter"
name="eClassParameter"
optional="true"
typeId="org.eclipse.emf.ecp.navigator.eClassType">
</commandParameter>
<commandParameter
id="org.eclipse.emf.ecp.navigator.eReferenceParameter"
name="eReferenceParameter"
optional="true"
typeId="org.eclipse.emf.ecp.navigator.eReferenceType">
</commandParameter>
</command>
<command
defaultHandler="org.eclipse.emf.ecp.navigator.handler.ImportModelHandler"
id="org.eclipse.emf.ecp.navigator.importModel"
name="Import model">
</command>
<category
id="org.eclipse.emf.ecp.navigator"
name="Navigator">
</category>
<commandParameterType
converter="org.eclipse.emf.ecp.navigator.commands.EClassTypeConverter"
id="org.eclipse.emf.ecp.navigator.eClassType"
type="org.eclipse.emf.ecore.EClass">
</commandParameterType>
<command
defaultHandler="org.eclipse.emf.ecp.navigator.handler.ExportModelHandler"
id="org.eclipse.emf.ecp.navigator.exportModel"
name="Export model">
</command>
<commandParameterType
converter="org.eclipse.emf.ecp.navigator.commands.EReferenceTypeConverter"
id="org.eclipse.emf.ecp.navigator.eReferenceType"
type="java.lang.String">
</commandParameterType>
</extension>
</plugin>