blob: b3d0493d2fa1c38674622e2c1bd6d59c9d790fdb [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
<copyright>
</copyright>
$Id: plugin.xml,v 1.3 2009/07/10 01:48:34 mparker Exp $
-->
<plugin>
<!-- <extension
point="org.eclipse.debug.core.launchConfigurationTypes">
<launchConfigurationType
id="org.eclipse.amp.escape.launching.ui.EscapeLaunchConfigType"
modes="run, debug"
name="Escape MetaABM Model"
delegate="org.eclipse.jdt.launching.JavaLaunchDelegate"/>
</extension>
<extension
point="org.eclipse.debug.ui.launchConfigurationTabGroups">
<launchConfigurationTabGroup
class="org.eclipse.amp.escape.amf.ide.EscapeLaunchConfigTabGroup"
id="org.eclipse.amp.escape.launching.ui.EscapeLaunchConfigTabGroup"
type="org.eclipse.amp.escape.launching.ui.EscapeLaunchConfigType"/>
</extension>
<extension
point="org.eclipse.debug.ui.launchConfigurationTypeImages">
<launchConfigurationTypeImage
configTypeID="org.eclipse.amp.escape.launching.ui.EscapeLaunchConfigType"
icon="icons/etool16/Escape.gif"
id="org.eclipse.amp.escape.launching.ui.EscapeLaunchConfigTypeImage"/>
</extension>
<extension
point="org.eclipse.debug.ui.launchShortcuts">
<shortcut
label="Escape MetaABM Model"
icon="icons/etool16/MetaPerspective.gif"
category="org.eclipse.ui.externaltools"
class="org.eclipse.amp.escape.amf.ide.EscapeLaunchAction"
modes="run, debug"
id="org.eclipse.amp.escape.launching.ui.EscapeShortcut">
<contextualLaunch>
<enablement>
<with variable="selection">
<count value="1"/>
<iterate>
<test property="org.eclipse.debug.ui.matchesPattern" value="*.metaabm"/>
</iterate>
</with>
</enablement>
<contextLabel
mode="run"
label="Escape Model"/>
<contextLabel
mode="debug"
label="Escape Model"/>
</contextualLaunch>
</shortcut>
</extension>-->
<extension
point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.amp.axf.ui"
id="org.eclipse.amp.escape.runtime.executeAMF"
name="Execute">
</command>
<command
categoryId="org.eclipse.amp.axf.ui"
id="org.eclipse.amp.escape.runtime.executeAMFHeadless"
name="Execute Headless">
</command>
<command
categoryId="org.eclipse.amp.amf.gen.category"
id="org.eclipse.amp.amf.gen.escape"
name="Generate Escape Model">
</command>
<command
categoryId="org.eclipse.amp.amf.gen.category"
id="org.eclipse.amp.amf.gen.escape.3D"
name="Generate Escape 3D Graphics">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.metaabm.ide.generateMenuID">
<command
commandId="org.eclipse.amp.amf.gen.escape"
icon="icons/etool16/execute.gif"
label="Escape"
style="push"
tooltip="Manually generate Escape implementation. (It usually makes more sense to use a builder.)">
<visibleWhen
checkEnabled="false">
<reference
definitionId="org.metaabm.metaABMFile">
</reference>
</visibleWhen>
</command>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.amp.escape.ide.launch?after=additions">
<command commandId="org.eclipse.amp.escape.runtime.executeAMF"
icon="icons/etool16/execute.gif" label="Execute" style="push"
tooltip="Load and start an Escape model.">
<visibleWhen checkEnabled="false">
<reference definitionId="org.eclipse.amp.escape.amf.allowexecute">
</reference>
</visibleWhen>
</command>
<command commandId="org.eclipse.amp.escape.runtime.executeAMFHeadless"
icon="icons/etool16/execute_headless.gif" label="Execute Headless" style="push"
tooltip="Load and start an Escape model in non-graphical mode.">
<visibleWhen checkEnabled="false">
<reference definitionId="org.eclipse.amp.escape.amf.allowexecute">
</reference>
</visibleWhen>
</command>
</menuContribution>
<menuContribution locationURI="menu:org.eclipse.amp.axf.ui.menu?after=additions">
<command commandId="org.eclipse.amp.escape.runtime.executeAMF"
icon="icons/etool16/execute.gif" label="Execute" style="push"
tooltip="Load and start an Escape model.">
<visibleWhen checkEnabled="false">
<reference definitionId="org.eclipse.amp.escape.amf.allowexecute">
</reference>
</visibleWhen>
</command>
<command commandId="org.eclipse.amp.escape.runtime.executeAMFHeadless"
icon="icons/etool16/execute_headless.gif" label="Execute Headless" style="push"
tooltip="Load and start an Escape model in non-graphical mode.">
<visibleWhen checkEnabled="false">
<reference definitionId="org.eclipse.amp.escape.amf.allowexecute">
</reference>
</visibleWhen>
</command>
</menuContribution>
<menuContribution
locationURI="popup:org.metaabm.ide.generateMenuID">
<command
commandId="org.eclipse.amp.amf.gen.escape.3D"
icon="icons/etool16/generic_agent.gif"
label="Escape 3D Styles"
style="push"
tooltip="Manually generate Escape implementation. (It usually makes more sense to use a builder.)">
<visibleWhen
checkEnabled="false">
<reference
definitionId="org.metaabm.metaABMFile">
</reference>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension point="org.eclipse.core.expressions.definitions">
<definition
id="org.eclipse.amp.escape.amf.allowexecute">
<or>
<with
variable="selection">
<iterate
ifEmpty="false">
<or>
<adapt
type="org.eclipse.core.resources.IResource">
<test
property="org.eclipse.core.resources.name"
value="*.metaabm">
</test>
</adapt></or>
</iterate>
</with>
</or>
</definition>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.amp.escape.amf.ide.ExecuteAMFHandler"
commandId="org.eclipse.amp.escape.runtime.executeAMF">
<activeWhen>
<reference
definitionId="org.eclipse.amp.escape.amf.allowexecute">
</reference>
</activeWhen>
<enabledWhen>
<reference
definitionId="org.eclipse.amp.escape.amf.allowexecute">
</reference>
</enabledWhen>
</handler>
<handler
class="org.eclipse.amp.escape.amf.ide.ExecuteAMFHeadlessHandler"
commandId="org.eclipse.amp.escape.runtime.executeAMFHeadless">
<activeWhen>
<reference
definitionId="org.eclipse.amp.escape.amf.allowexecute">
</reference>
</activeWhen>
<enabledWhen>
<reference
definitionId="org.eclipse.amp.escape.amf.allowexecute">
</reference>
</enabledWhen>
</handler>
<handler
class="org.eclipse.amp.escape.amf.ide.GenerateEscapeHandler"
commandId="org.eclipse.amp.amf.gen.escape">
</handler>
<handler
class="org.eclipse.amp.escape.amf.ide.GenerateEscapeStyles3DHandler"
commandId="org.eclipse.amp.amf.gen.escape.3D">
</handler>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="org.eclipse.amp.amf.gen.escape"
contextId="org.eclipse.ui.contexts.window"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+SHIFT+B E">
</key>
</extension>
<extension
id="escapeBuilder"
name="Escape MetaABM Builder"
point="org.eclipse.core.resources.builders">
<builder
hasNature="false">
<run class="org.eclipse.amp.escape.amf.ide.EscapeModelBuilder"/>
</builder>
</extension>
<extension
id="escapeBuilder2"
name="Escape MetaABM Style Builder"
point="org.eclipse.core.resources.builders">
<builder
hasNature="false">
<run class="org.eclipse.amp.escape.amf.ide.EscapeModelStyles2Builder"/>
</builder>
</extension>
<extension
id="escapeBuilder3"
name="Escape MetaABM Proxy Builder"
point="org.eclipse.core.resources.builders">
<builder
hasNature="false">
<run class="org.eclipse.amp.escape.amf.ide.EscapeModelStyle3DBuilder"/>
</builder>
</extension>
<extension point="org.eclipse.ui.newWizards">
<wizard
category="org.metaabm.ide.wizards"
class="org.eclipse.amp.escape.amf.ide.EscapeAMFProjectWizard"
descriptionImage="icons/etool16/generic_agent.gif"
icon="icons/etool16/generic_agent.gif"
id="org.eclipse.amp.escape.wizards.newProject"
name="Escape Project"
project="true">
<description>Creates a new project for generating Escape implementations from MetaABM models.</description>
</wizard>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.amp.amf.AgentModelingPerspective">
<newWizardShortcut
id="org.eclipse.amp.escape.wizards.newProject">
</newWizardShortcut>
</perspectiveExtension>
</extension>
</plugin>