| <?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" id="repo-ftype"> |
| <?gmfgen generated="true"?> |
| <fileTypes type="text" extension="port_diagram"/> |
| </extension> |
| |
| <extension point="org.eclipse.emf.ecore.extension_parser" id="resource-factory"> |
| <?gmfgen generated="true"?> |
| <parser |
| type="port_diagram" |
| class="org.eclipse.gmf.runtime.emf.core.resources.GMFResourceFactory"> |
| </parser> |
| </extension> |
| |
| <extension point="org.eclipse.ui.editors" id="gmf-editor"> |
| <?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" id="ui-context"> |
| <?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" id="creation-wizard"> |
| <?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" id="init-diagram-action"> |
| <?gmfgen generated="true"?> |
| <objectContribution |
| id="org.eclipse.gmf.examples.taipan.port.diagram.InitDiagram" |
| nameFilter="*.taipan" |
| objectClass="org.eclipse.core.resources.IFile"> |
| <action |
| label="%initDiagramActionLabel" |
| class="org.eclipse.gmf.examples.taipan.port.diagram.part.TaiPanInitDiagramFileAction" |
| menubarPath="additions" |
| enablesFor="1" |
| id="org.eclipse.gmf.examples.taipan.port.diagram.InitDiagramAction"> |
| </action> |
| </objectContribution> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.common.ui.services.action.globalActionHandlerProviders" id="global-actions"> |
| <?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> |
| <ElementType class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart"> |
| <GlobalActionId actionId="save"> |
| </GlobalActionId> |
| </ElementType> |
| </ViewId> |
| </GlobalActionHandlerProvider> |
| <GlobalActionHandlerProvider |
| class="org.eclipse.gmf.runtime.diagram.ui.providers.ide.providers.DiagramIDEGlobalActionHandlerProvider" |
| id="PortPresentationIDE"> |
| <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="bookmark"/> |
| </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" id="prefs"> |
| <?gmfgen generated="true"?> |
| <initializer class="org.eclipse.gmf.examples.taipan.port.diagram.preferences.DiagramPreferenceInitializer"/> |
| </extension> |
| |
| <extension point="org.eclipse.ui.preferencePages" id="prefpages"> |
| <?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> |
| </extension> |
| |
| <extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor" id="prop-contrib"> |
| <?gmfgen generated="true"?> |
| <propertyContributor |
| contributorId="org.eclipse.gmf.examples.taipan.port.diagram" |
| 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" id="proptabs"> |
| <?gmfgen generated="true"?> |
| <propertyTabs contributorId="org.eclipse.gmf.examples.taipan.port.diagram"> |
| <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" id="propsections"> |
| <?gmfgen generated="true"?> |
| <propertySections contributorId="org.eclipse.gmf.examples.taipan.port.diagram"> |
| <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" id="view-provider"> |
| <?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="2001"/> |
| </viewProvider> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders" id="ep-provider"> |
| <?gmfgen generated="true"?> |
| <editpartProvider class="org.eclipse.gmf.examples.taipan.port.diagram.providers.TaiPanEditPartProvider"> |
| <Priority name="Lowest"/> |
| <object class="org.eclipse.gmf.runtime.notation.Diagram" id="generated-diagram"> |
| <method name="getType()" value="Port"/> |
| </object> |
| <object class="org.eclipse.gmf.runtime.notation.Node" id="generated-nodes"> |
| <method name="getType()" value="2001"/> |
| </object> |
| <object class="org.eclipse.gmf.runtime.notation.Edge" id="generated-links"> |
| <method name="getType()" value=""/> |
| </object> |
| <object class="org.eclipse.gmf.runtime.notation.Node" id="generated-labels"> |
| <method name="getType()" value="3001"/> |
| </object> |
| <object class="org.eclipse.gmf.runtime.notation.Node" id="generated-compartments"> |
| <method name="getType()" value=""/> |
| </object> |
| <context views="generated-diagram,generated-nodes,generated-links,generated-labels,generated-compartments"/> |
| </editpartProvider> |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.emf.ui.modelingAssistantProviders" id="modelassist-provider"> |
| <?gmfgen generated="true"?> |
| <modelingAssistantProvider class="org.eclipse.gmf.examples.taipan.port.diagram.providers.assistants.TaiPanModelingAssistantProviderOfPortEditPart"> |
| <Priority name="Lowest"/> |
| <object class="org.eclipse.gmf.examples.taipan.port.diagram.edit.parts.PortEditPart" id="Port_1000"/> |
| <context elements="Port_1000"/> |
| </modelingAssistantProvider> |
| <modelingAssistantProvider class="org.eclipse.gmf.examples.taipan.port.diagram.providers.assistants.TaiPanModelingAssistantProviderOfBuildingEditPart"> |
| <Priority name="Lowest"/> |
| <object class="org.eclipse.gmf.examples.taipan.port.diagram.edit.parts.BuildingEditPart" id="Building_2001"/> |
| <context elements="Building_2001"/> |
| </modelingAssistantProvider> |
| |
| </extension> |
| |
| <extension point="org.eclipse.gmf.runtime.common.ui.services.iconProviders" id="icon-provider"> |
| <?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" id="parser-provider"> |
| <?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" id="element-types"> |
| <?gmfgen generated="true"?> |
| <metamodel nsURI="http://www.eclipse.org/examples/gmf/taipan"> |
| <metamodelType |
| id="org.eclipse.gmf.examples.taipan.port.diagram.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.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" id="element-types-bindings"> |
| <?gmfgen generated="true"?> |
| <clientContext id="org.eclipse.gmf.examples.taipan.port.diagram.TypeContext"> |
| <enablement> |
| <test |
| property="org.eclipse.gmf.runtime.emf.core.editingDomain" |
| value="org.eclipse.gmf.examples.taipan.port.diagram.EditingDomain"/> |
| </enablement> |
| </clientContext> |
| <binding context="org.eclipse.gmf.examples.taipan.port.diagram.TypeContext"> |
| <elementType ref="org.eclipse.gmf.examples.taipan.port.diagram.Port_1000"/> |
| <elementType ref="org.eclipse.gmf.examples.taipan.port.diagram.Building_2001"/> |
| <advice ref="org.eclipse.gmf.runtime.diagram.core.advice.notationDepdendents"/> |
| </binding> |
| </extension> |
| <extension point="org.eclipse.ui.commands" id="update-cmd"> |
| <?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" id="update-cmd-binding"> |
| <?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> |
| |
| <extension point="org.eclipse.ui.menus" id="context-menus"> |
| <?gmfgen generated="true"?> |
| <!-- menuContribution locationURI="menu:org.eclipse.ui.main.menu?after="> |
| </menuContribution> |
| <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after="> |
| </menuContribution --> |
| <menuContribution locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu"> |
| <command commandId="org.eclipse.gmf.examples.taipan.port.diagram.LoadResourceAction"> |
| <visibleWhen> |
| <and> |
| <with variable="activePartId"><equals value="org.eclipse.gmf.examples.taipan.port.diagram.part.PortDiagramEditorID"/></with> |
| <with variable="selection"><iterate ifEmpty="false"> |
| <instanceof value="org.eclipse.gmf.examples.taipan.port.diagram.edit.parts.PortEditPart"/> |
| </iterate></with> |
| </and> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| |
| <extension point="org.eclipse.ui.commands" id="menu-commands"> |
| <?gmfgen generated="true"?> |
| <category id="org.eclipse.gmf.examples.taipan.port.diagram.part.PortDiagramEditorID" name="%cmdcategory.name" description="%cmdcategory.desc"/> |
| <command id="org.eclipse.gmf.examples.taipan.port.diagram.LoadResourceAction" |
| name="Load Resource" |
| categoryId="org.eclipse.gmf.examples.taipan.port.diagram.part.PortDiagramEditorID" |
| defaultHandler="org.eclipse.gmf.examples.taipan.port.diagram.part.LoadResourceAction"/> |
| </extension> |
| |
| <extension point="org.eclipse.ui.handlers" id="menu-handlers"> |
| <?gmfgen generated="true"?> |
| </extension> |
| |
| <!-- optionally, specify keybindings --> |
| </plugin> |