| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.0"?> |
| <!-- |
| Copyright (c) 2007 Borland Software Corporation |
| |
| 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: |
| Dmitry Stadnik (Borland) - initial API and implementation |
| --> |
| <plugin> |
| |
| <extension point="org.eclipse.team.core.fileTypes"> |
| <?gmfgen generated="true"?> |
| <fileTypes |
| type="text" |
| extension="port_diagram"> |
| </fileTypes> |
| </extension> |
| |
| <extension point="org.eclipse.emf.ecore.extension_parser"> |
| <?gmfgen generated="true"?> |
| <parser |
| type="port_diagram" |
| class="org.eclipse.gmf.runtime.emf.core.resources.GMFResourceFactory"> |
| </parser> |
| </extension> |
| |
| <extension point="org.eclipse.ui.editors"> |
| <?gmfgen generated="true"?> |
| <editor |
| id="org.eclipse.gmf.examples.taipan.port.diagram.part.PortDiagramEditorID" |
| name="%editorName" |
| icon="icons/PortDiagramFile.gif" |
| extensions="port_diagram" |
| default="true" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.part.PortDiagramEditor" |
| matchingStrategy="org.eclipse.gmf.examples.taipan.port.diagram.part.TaiPanMatchingStrategy" |
| contributorClass="org.eclipse.gmf.examples.taipan.port.diagram.part.TaiPanDiagramActionBarContributor"> |
| </editor> |
| </extension> |
| |
| <extension point="org.eclipse.ui.contexts"> |
| <?gmfgen generated="true"?> |
| <context |
| description="%context.description" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.ui.diagramContext" |
| name="%context.name" |
| parentId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"> |
| </context> |
| </extension> |
| |
| <extension point="org.eclipse.ui.newWizards"> |
| <?gmfgen generated="true"?> |
| <wizard |
| name="%newWizardName" |
| icon="icons/PortDiagramFile.gif" |
| category="org.eclipse.ui.Examples" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.part.TaiPanCreationWizard" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.part.TaiPanCreationWizardID"> |
| <description>%newWizardDesc</description> |
| </wizard> |
| </extension> |
| |
| <extension point="org.eclipse.ui.popupMenus"> |
| <?gmfgen generated="true"?> |
| <objectContribution |
| adaptable="false" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.LoadResource" |
| objectClass="org.eclipse.gmf.examples.taipan.port.diagram.edit.parts.PortEditPart"> |
| <action |
| class="org.eclipse.gmf.examples.taipan.port.diagram.part.TaiPanLoadResourceAction" |
| enablesFor="1" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.LoadResourceAction" |
| label="%loadResourceActionLabel" |
| menubarPath="additions"> |
| </action> |
| </objectContribution> |
| </extension> |
| |
| <extension point="org.eclipse.ui.actionSets"> |
| <?gmfgen generated="true"?> |
| <actionSet |
| label="%initDiagramActionLabel" |
| visible="true" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.InitDiagram"> |
| <action |
| label="%initDiagramActionLabel" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.part.TaiPanInitDiagramFileAction" |
| menubarPath="file/additions" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.InitDiagramAction"> |
| </action> |
| </actionSet> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.common.ui.services.action.globalActionHandlerProviders"> |
| <?gmfgen generated="true"?> |
| <GlobalActionHandlerProvider |
| class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramGlobalActionHandlerProvider" |
| id="PortPresentation"> |
| <Priority name="Lowest"/> |
| <ViewId id="org.eclipse.gmf.examples.taipan.port.diagram.part.PortDiagramEditorID"> |
| <ElementType class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart"> |
| <GlobalActionId actionId="delete"/> |
| </ElementType> |
| <ElementType class="org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart"> |
| <GlobalActionId actionId="save"/> |
| </ElementType> |
| </ViewId> |
| </GlobalActionHandlerProvider> |
| <GlobalActionHandlerProvider |
| class="org.eclipse.gmf.runtime.diagram.ui.render.providers.DiagramUIRenderGlobalActionHandlerProvider" |
| id="PortRender"> |
| <Priority name="Lowest"/> |
| <ViewId id="org.eclipse.gmf.examples.taipan.port.diagram.part.PortDiagramEditorID"> |
| <ElementType class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart"> |
| <GlobalActionId actionId="cut"/> |
| <GlobalActionId actionId="copy"/> |
| <GlobalActionId actionId="paste"/> |
| </ElementType> |
| </ViewId> |
| </GlobalActionHandlerProvider> |
| </extension> |
| |
| |
| |
| <extension point="org.eclipse.core.runtime.preferences"> |
| <?gmfgen generated="true"?> |
| <initializer class="org.eclipse.gmf.examples.taipan.port.diagram.preferences.DiagramPreferenceInitializer"/> |
| </extension> |
| |
| <extension point="org.eclipse.ui.preferencePages"> |
| <?gmfgen generated="true"?> |
| <page |
| id="org.eclipse.gmf.examples.taipan.diagram.general" |
| name="%prefpage.org.eclipse.gmf.examples.taipan.diagram.general" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.preferences.DiagramGeneralPreferencePage"> |
| </page> |
| <page |
| id="org.eclipse.gmf.examples.taipan.diagram.appearance" |
| name="%prefpage.org.eclipse.gmf.examples.taipan.diagram.appearance" |
| category="org.eclipse.gmf.examples.taipan.diagram.general" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.preferences.DiagramAppearancePreferencePage"> |
| </page> |
| <page |
| id="org.eclipse.gmf.examples.taipan.diagram.connections" |
| name="%prefpage.org.eclipse.gmf.examples.taipan.diagram.connections" |
| category="org.eclipse.gmf.examples.taipan.diagram.general" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.preferences.DiagramConnectionsPreferencePage"> |
| </page> |
| <page |
| id="org.eclipse.gmf.examples.taipan.diagram.printing" |
| name="%prefpage.org.eclipse.gmf.examples.taipan.diagram.printing" |
| category="org.eclipse.gmf.examples.taipan.diagram.general" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.preferences.DiagramPrintingPreferencePage"> |
| </page> |
| <page |
| id="org.eclipse.gmf.examples.taipan.diagram.rulersAndGrid" |
| name="%prefpage.org.eclipse.gmf.examples.taipan.diagram.rulersAndGrid" |
| category="org.eclipse.gmf.examples.taipan.diagram.general" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.preferences.DiagramRulersAndGridPreferencePage"> |
| </page> |
| <page |
| id="org.eclipse.gmf.examples.taipan.diagram.pathmaps" |
| name="%prefpage.org.eclipse.gmf.examples.taipan.diagram.pathmaps" |
| category="org.eclipse.gmf.examples.taipan.diagram.general" |
| class="org.eclipse.gmf.runtime.emf.ui.preferences.PathmapsPreferencePage"> |
| </page> |
| </extension> |
| |
| <extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor"> |
| <?gmfgen generated="true"?> |
| <propertyContributor |
| contributorId="org.eclipse.gmf.examples.taipan.port.diagram.rcp" |
| labelProvider="org.eclipse.gmf.examples.taipan.port.diagram.properties.PortPropertiesLabelProvider"> |
| <propertyCategory category="domain"/> |
| <propertyCategory category="visual"/> |
| <propertyCategory category="extra"/> |
| </propertyContributor> |
| </extension> |
| |
| <extension point="org.eclipse.ui.views.properties.tabbed.propertyTabs"> |
| <?gmfgen generated="true"?> |
| <propertyTabs contributorId="org.eclipse.gmf.examples.taipan.port.diagram.rcp"> |
| <propertyTab |
| category="visual" |
| id="property.tab.AppearancePropertySection" |
| label="%tab.appearance"/> |
| <propertyTab |
| category="visual" |
| id="property.tab.DiagramPropertySection" |
| label="%tab.diagram"/> |
| <propertyTab |
| category="domain" |
| id="property.tab.domain" |
| label="%tab.domain"/> |
| </propertyTabs> |
| </extension> |
| |
| <extension point="org.eclipse.ui.views.properties.tabbed.propertySections"> |
| <?gmfgen generated="true"?> |
| <propertySections contributorId="org.eclipse.gmf.examples.taipan.port.diagram.rcp"> |
| <propertySection id="property.section.ConnectorAppearancePropertySection" |
| filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ConnectionEditPartPropertySectionFilter" |
| class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.ConnectionAppearancePropertySection" |
| tab="property.tab.AppearancePropertySection"> |
| </propertySection> |
| <propertySection id="property.section.ShapeColorAndFontPropertySection" |
| filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeEditPartPropertySectionFilter" |
| class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.ShapeColorsAndFontsPropertySection" |
| tab="property.tab.AppearancePropertySection"> |
| </propertySection> |
| <propertySection id="property.section.DiagramColorsAndFontsPropertySection" |
| filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.DiagramEditPartPropertySectionFilter" |
| class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.DiagramColorsAndFontsPropertySection" |
| tab="property.tab.AppearancePropertySection"> |
| </propertySection> |
| <propertySection id="property.section.RulerGridPropertySection" |
| filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.DiagramEditPartPropertySectionFilter" |
| class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.grid.RulerGridPropertySection" |
| tab="property.tab.DiagramPropertySection"> |
| </propertySection> |
| <propertySection |
| id="property.section.domain" |
| tab="property.tab.domain" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.properties.TaiPanPropertySection"> |
| <input type="org.eclipse.gmf.runtime.notation.View"/> |
| <input type="org.eclipse.gef.EditPart"/> |
| </propertySection> |
| </propertySections> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.diagram.core.viewProviders"> |
| <?gmfgen generated="true"?> |
| <viewProvider class="org.eclipse.gmf.examples.taipan.port.diagram.providers.TaiPanViewProvider"> |
| <Priority name="Lowest"/> |
| <context viewClass="org.eclipse.gmf.runtime.notation.Diagram" semanticHints="Port"/> |
| <context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints=""/> |
| <context viewClass="org.eclipse.gmf.runtime.notation.Edge" semanticHints=""/> |
| </viewProvider> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders"> |
| <?gmfgen generated="true"?> |
| <editpartProvider class="org.eclipse.gmf.examples.taipan.port.diagram.providers.TaiPanEditPartProvider"> |
| <Priority name="Lowest"/> |
| </editpartProvider> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.emf.ui.modelingAssistantProviders"> |
| <?gmfgen generated="true"?> |
| <modelingAssistantProvider class="org.eclipse.gmf.examples.taipan.port.diagram.providers.TaiPanModelingAssistantProvider"> |
| <Priority name="Lowest"/> |
| </modelingAssistantProvider> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.common.ui.services.iconProviders"> |
| <?gmfgen generated="true"?> |
| <IconProvider class="org.eclipse.gmf.examples.taipan.port.diagram.providers.TaiPanIconProvider"> |
| <Priority name="Low"/> |
| </IconProvider> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.common.ui.services.parserProviders"> |
| <?gmfgen generated="true"?> |
| <ParserProvider class="org.eclipse.gmf.examples.taipan.port.diagram.providers.TaiPanParserProvider"> |
| <Priority name="Lowest"/> |
| </ParserProvider> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypes"> |
| <?gmfgen generated="true"?> |
| <metamodel nsURI="http://www.eclipse.org/examples/gmf/taipan"> |
| <metamodelType |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.Port_1000" |
| name="%metatype.name.Port_1000" |
| kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType" |
| eclass="Port" |
| edithelper="org.eclipse.gmf.examples.taipan.port.diagram.edit.helpers.PortEditHelper"> |
| <param name="semanticHint" value="1000"/> |
| </metamodelType> |
| </metamodel> |
| <metamodel nsURI="http://www.eclipse.org/examples/gmf/taipan"> |
| <metamodelType |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.Building_2001" |
| name="%metatype.name.Building_2001" |
| kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType" |
| eclass="Building" |
| edithelper="org.eclipse.gmf.examples.taipan.port.diagram.edit.helpers.BuildingEditHelper"> |
| <param name="semanticHint" value="2001"/> |
| </metamodelType> |
| </metamodel> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings"> |
| <?gmfgen generated="true"?> |
| <clientContext id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.TypeContext"> |
| <enablement> |
| <test |
| property="org.eclipse.gmf.runtime.emf.core.editingDomain" |
| value="org.eclipse.gmf.examples.taipan.port.diagram.rcp.EditingDomain"/> |
| </enablement> |
| </clientContext> |
| <binding context="org.eclipse.gmf.examples.taipan.port.diagram.rcp.TypeContext"> |
| <elementType ref="org.eclipse.gmf.examples.taipan.port.diagram.rcp.Port_1000"/> |
| <elementType ref="org.eclipse.gmf.examples.taipan.port.diagram.rcp.Building_2001"/> |
| <advice ref="org.eclipse.gmf.runtime.diagram.core.advice.notationDepdendents"/> |
| </binding> |
| </extension> |
| |
| <extension id="PortApplication" point="org.eclipse.core.runtime.applications"> |
| <?gmfgen generated="true"?> |
| <application> |
| <run class="org.eclipse.gmf.examples.taipan.port.diagram.application.TaiPanApplication"/> |
| </application> |
| </extension> |
| |
| <extension point="org.eclipse.ui.perspectives"> |
| <?gmfgen generated="true"?> |
| <perspective |
| id="org.eclipse.gmf.examples.taipan.port.diagram.PortPerspective" |
| name="%perspectiveName" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.application.DiagramEditorPerspective"> |
| </perspective> |
| </extension> |
| |
| <extension point="org.eclipse.ui.commands"> |
| <?gmfgen generated="true"?> |
| <command |
| name="%openURIActionLabel" |
| description="%openURIActionDescription" |
| categoryId="org.eclipse.ui.category.file" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.OpenURICommand"/> |
| <command |
| name="%openActionLabel" |
| description="%openActionDescription" |
| categoryId="org.eclipse.ui.category.file" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.OpenCommand"/> |
| </extension> |
| |
| <extension point="org.eclipse.ui.bindings"> |
| <?gmfgen generated="true"?> |
| <key |
| commandId="org.eclipse.gmf.examples.taipan.port.diagram.rcp.OpenURICommand" |
| sequence="M1+U" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/> |
| <key |
| commandId="org.eclipse.gmf.examples.taipan.port.diagram.rcp.OpenCommand" |
| sequence="M1+O" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/> |
| </extension> |
| |
| <extension point="org.eclipse.ui.actionSets"> |
| <?gmfgen generated="true"?> |
| <actionSet |
| label="%applicationActionSetLabel" |
| visible="true" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.ActionSet"> |
| <action |
| label="%newDiagramActionLabel" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.application.DiagramEditorActionBarAdvisor$NewDiagramAction" |
| menubarPath="file/new/additions" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.NewDiagramAction"> |
| </action> |
| <action |
| label="%aboutActionLabel" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.application.DiagramEditorActionBarAdvisor$AboutAction" |
| menubarPath="help/additions" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.AboutAction"> |
| </action> |
| <action |
| label="%openURIActionLabel" |
| definitionId="org.eclipse.gmf.examples.taipan.port.diagram.rcp.OpenURICommand" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.application.DiagramEditorActionBarAdvisor$OpenURIAction" |
| menubarPath="file/additions" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.OpenURIAction"> |
| </action> |
| <action |
| label="%openActionLabel" |
| definitionId="org.eclipse.gmf.examples.taipan.port.diagram.rcp.OpenCommand" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.application.DiagramEditorActionBarAdvisor$OpenAction" |
| menubarPath="file/additions" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.rcp.OpenAction"> |
| </action> |
| </actionSet> |
| </extension> |
| |
| <extension point="org.eclipse.ui.commands"> |
| <?gmfgen generated="true"?> |
| <command |
| categoryId="org.eclipse.ui.category.edit" |
| defaultHandler="org.eclipse.gmf.examples.taipan.port.diagram.part.TaiPanDiagramUpdateCommand" |
| description="%update.diagram.description" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.updateDiagram" |
| name="%update.diagram.name"/> |
| </extension> |
| |
| <extension point="org.eclipse.ui.bindings"> |
| <?gmfgen generated="true"?> |
| <key |
| commandId="org.eclipse.gmf.examples.taipan.port.diagram.updateDiagram" |
| contextId="org.eclipse.gmf.examples.taipan.port.diagram.ui.diagramContext" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="F5"/> |
| </extension> |
| |
| </plugin> |