blob: ab2383719c27bf3a218340e0302812be08ca8c4a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
Copyright (c) 2006, 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="design2d">
</fileTypes>
</extension>
<extension point="org.eclipse.emf.ecore.extension_parser">
<?gmfgen generated="true"?>
<parser
type="design2d"
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.design2d.part.DesignDiagramEditorID"
name="%editorName"
icon="icons/obj16/DiagramFile.gif"
extensions="design2d"
default="true"
class="org.eclipse.gmf.examples.design2d.part.DesignDiagramEditor"
matchingStrategy="org.eclipse.gmf.examples.design2d.part.DesignMatchingStrategy"
contributorClass="org.eclipse.gmf.examples.design2d.part.DesignDiagramActionBarContributor">
</editor>
</extension>
<extension point="org.eclipse.ui.contexts">
<?gmfgen generated="true"?>
<context
description="%context.description"
id="org.eclipse.gmf.examples.design2d.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/obj16/DiagramFile.gif"
category="org.eclipse.ui.Examples"
class="org.eclipse.gmf.examples.design2d.part.DesignCreationWizard"
id="org.eclipse.gmf.examples.design2d.part.DesignCreationWizardID">
<description>%newWizardDesc</description>
</wizard>
</extension>
<extension point="org.eclipse.ui.popupMenus">
<?gmfgen generated="true"?>
<objectContribution
adaptable="false"
id="org.eclipse.gmf.examples.design2d.LoadResource"
objectClass="org.eclipse.gmf.examples.design2d.edit.parts.Design2DEditPart">
<action
class="org.eclipse.gmf.examples.design2d.part.DesignLoadResourceAction"
enablesFor="1"
id="org.eclipse.gmf.examples.design2d.LoadResourceAction"
label="%loadResourceActionLabel"
menubarPath="additions">
</action>
</objectContribution>
</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="Design2DPresentation">
<Priority name="Lowest"/>
<ViewId id="org.eclipse.gmf.examples.design2d.part.DesignDiagramEditorID">
<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.providers.ide.providers.DiagramIDEGlobalActionHandlerProvider"
id="Design2DPresentationIDE">
<Priority name="Lowest"/>
<ViewId id="org.eclipse.gmf.examples.design2d.part.DesignDiagramEditorID">
<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="Design2DRender">
<Priority name="Lowest"/>
<ViewId id="org.eclipse.gmf.examples.design2d.part.DesignDiagramEditorID">
<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.gmf.runtime.common.ui.services.action.contributionItemProviders">
<?gmfgen generated="true"?>
<contributionItemProvider
class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContributionItemProvider"
checkPluginLoaded="false">
<Priority name="Low"/>
<popupContribution class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider">
<popupStructuredContributionCriteria objectClass="org.eclipse.gmf.examples.design2d.edit.parts.SolidLineCommentEditPart"/>
<popupPredefinedItem id="deleteFromDiagramAction" remove="true"/>
<popupPredefinedItem id="deleteFromModelAction" remove="true"/>
</popupContribution>
</contributionItemProvider>
</extension>
<extension point="org.eclipse.core.runtime.preferences">
<?gmfgen generated="true"?>
<initializer class="org.eclipse.gmf.examples.design2d.preferences.DiagramPreferenceInitializer"/>
</extension>
<extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
<?gmfgen generated="true"?>
<propertyContributor
contributorId="org.eclipse.gmf.examples.design2d"
labelProvider="org.eclipse.gmf.examples.design2d.properties.DesignSheetLabelProvider">
<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.design2d">
<propertyTab
category="visual"
id="property.tab.AppearancePropertySection"
label="%tab.appearance"/>
<propertyTab
category="visual"
id="property.tab.DiagramPropertySection"
label="%tab.diagram"/>
</propertyTabs>
</extension>
<extension point="org.eclipse.ui.views.properties.tabbed.propertySections">
<?gmfgen generated="true"?>
<propertySections contributorId="org.eclipse.gmf.examples.design2d">
<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>
</propertySections>
</extension>
<extension point="org.eclipse.gmf.runtime.diagram.core.viewProviders">
<?gmfgen generated="true"?>
<viewProvider class="org.eclipse.gmf.examples.design2d.providers.DesignViewProvider">
<Priority name="Lowest"/>
<context viewClass="org.eclipse.gmf.runtime.notation.Diagram" semanticHints="Design2D"/>
<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.design2d.providers.DesignEditPartProvider">
<Priority name="Lowest"/>
</editpartProvider>
</extension>
<extension point="org.eclipse.gmf.runtime.emf.ui.modelingAssistantProviders">
<?gmfgen generated="true"?>
<modelingAssistantProvider class="org.eclipse.gmf.examples.design2d.providers.DesignModelingAssistantProvider">
<Priority name="Lowest"/>
</modelingAssistantProvider>
</extension>
<extension point="org.eclipse.gmf.runtime.common.ui.services.iconProviders">
<?gmfgen generated="true"?>
<IconProvider class="org.eclipse.gmf.examples.design2d.providers.DesignIconProvider">
<Priority name="Low"/>
</IconProvider>
</extension>
<extension point="org.eclipse.gmf.runtime.common.ui.services.parserProviders">
<?gmfgen generated="true"?>
<ParserProvider class="org.eclipse.gmf.examples.design2d.providers.DesignParserProvider">
<Priority name="Lowest"/>
</ParserProvider>
</extension>
<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypes">
<?gmfgen generated="true"?>
<specializationType
id="org.eclipse.gmf.examples.design2d.Diagram"
name="%metatype.name.Diagram_1000"
kind="org.eclipse.gmf.runtime.diagram.ui.util.INotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="1000"/>
</specializationType>
<specializationType
id="org.eclipse.gmf.examples.design2d.SolidRectangle"
name="%metatype.name.Node_2001"
kind="org.eclipse.gmf.runtime.diagram.ui.util.INotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="2001"/>
</specializationType>
<specializationType
id="org.eclipse.gmf.examples.design2d.SolidEllipse"
name="%metatype.name.Node_2002"
kind="org.eclipse.gmf.runtime.diagram.ui.util.INotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="2002"/>
</specializationType>
<specializationType
id="org.eclipse.gmf.examples.design2d.Node"
name="%metatype.name.Node_2003"
kind="org.eclipse.gmf.runtime.diagram.ui.util.INotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="2003"/>
</specializationType>
<specializationType
id="org.eclipse.gmf.examples.design2d.InnerSolidRectangle"
name="%metatype.name.Node_3001"
kind="org.eclipse.gmf.runtime.diagram.ui.util.INotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="3001"/>
</specializationType>
<specializationType
id="org.eclipse.gmf.examples.design2d.InnerSolidEllipse"
name="%metatype.name.Node_3002"
kind="org.eclipse.gmf.runtime.diagram.ui.util.INotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="3002"/>
</specializationType>
<specializationType
id="org.eclipse.gmf.examples.design2d.SolidLine"
name="%metatype.name.Link_4001"
kind="org.eclipse.gmf.runtime.diagram.ui.util.INotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="4001"/>
</specializationType>
</extension>
<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings">
<?gmfgen generated="true"?>
<clientContext id="Design2DClientContext">
<enablement>
<test
property="org.eclipse.gmf.runtime.emf.core.editingDomain"
value="org.eclipse.gmf.examples.design2d.EditingDomain"/>
</enablement>
</clientContext>
<binding context="Design2DClientContext">
<elementType ref="org.eclipse.gmf.examples.design2d.Diagram"/>
<elementType ref="org.eclipse.gmf.examples.design2d.SolidRectangle"/>
<elementType ref="org.eclipse.gmf.examples.design2d.SolidEllipse"/>
<elementType ref="org.eclipse.gmf.examples.design2d.Node"/>
<elementType ref="org.eclipse.gmf.examples.design2d.InnerSolidRectangle"/>
<elementType ref="org.eclipse.gmf.examples.design2d.InnerSolidEllipse"/>
<elementType ref="org.eclipse.gmf.examples.design2d.SolidLine"/>
<advice ref="org.eclipse.gmf.runtime.diagram.core.advice.notationDepdendents"/>
</binding>
</extension>
<extension point="org.eclipse.ui.commands">
<?gmfgen generated="true"?>
<command
categoryId="org.eclipse.ui.category.edit"
defaultHandler="org.eclipse.gmf.examples.design2d.part.DesignDiagramUpdateCommand"
description="%update.diagram.description"
id="org.eclipse.gmf.examples.design2d.updateDiagram"
name="%update.diagram.name"/>
</extension>
<extension point="org.eclipse.ui.bindings">
<?gmfgen generated="true"?>
<key
commandId="org.eclipse.gmf.examples.design2d.updateDiagram"
contextId="org.eclipse.gmf.examples.design2d.ui.diagramContext"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="F5"/>
</extension>
</plugin>