blob: 9ab5ea8230cc8e5f6f399226b4e531553224dfb6 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension-point id="annotationEditpartProviders" name="annotationEditpartProviders" schema="schema/annotationEditpartProviders.exsd"/>
<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypes">
<elementTypeFactory
factory="org.eclipse.tigerstripe.annotation.ui.internal.diagrams.factories.AnnotationTypeFactory"
kind = "org.eclipse.tigerstripe.annotation.ui.diagrams.IAnnotationType"
params = "semanticHint">
</elementTypeFactory>
<specializationType
id="org.eclipse.tigerstripe.annotation.ui.diagram.presentation.viewLocation"
name="ViewLocationNode"
kind="org.eclipse.tigerstripe.annotation.ui.diagrams.IAnnotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="ViewLocationNode"/>
</specializationType>
<specializationType
id="org.eclipse.tigerstripe.annotation.ui.diagram.presentation.meta"
name="MetaAnnotation"
kind="org.eclipse.tigerstripe.annotation.ui.diagrams.IAnnotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="MetaAnnotation"/>
</specializationType>
<specializationType
id="org.eclipse.tigerstripe.annotation.ui.diagram.presentation.metaView"
name="MetaViewAnnotation"
kind="org.eclipse.tigerstripe.annotation.ui.diagrams.IAnnotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="MetaViewAnnotation"/>
</specializationType>
<specializationType
id="org.eclipse.tigerstripe.annotation.ui.diagram.presentation.connection"
icon="icons/connection.gif"
name="Connection"
kind="org.eclipse.tigerstripe.annotation.ui.diagrams.IAnnotationType">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="AnnotationConnection"/>
</specializationType>
<metamodel nsURI="http:///org/eclipse/tigerstripe/annotation.ecore">
<metamodelType
id="org.eclipse.tigerstripe.annotation.ui.diagram.presentation.annotation"
name="Annotation"
kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
eclass="Annotation">
<param name="semanticHint" value="Annotation"/>
</metamodelType>
</metamodel>
</extension>
<extension point="org.eclipse.gmf.runtime.diagram.core.viewProviders">
<viewProvider class="org.eclipse.tigerstripe.annotation.ui.internal.diagrams.factories.AnnotationViewProvider">
<Priority name="Lowest"/>
<context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints="Annotation"/>
<context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints="MetaAnnotation"/>
<context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints="MetaViewAnnotation"/>
<context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints="ViewLocationNode"/>
<context viewClass="org.eclipse.gmf.runtime.notation.Edge" semanticHints="AnnotationConnection"/>
</viewProvider>
</extension>
<extension point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders">
<editpartProvider class="org.eclipse.tigerstripe.annotation.ui.internal.diagrams.factories.AnnotationProvider">
<Priority name="Lowest"/>
</editpartProvider>
</extension>
<extension
point="org.eclipse.ui.startup">
<startup class="org.eclipse.tigerstripe.annotation.ui.diagrams.Startup"/>
</extension>
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri = "http:///org/eclipse/tigerstripe/annotation/ui/diagrams/model.ecore"
class = "org.eclipse.tigerstripe.annotation.ui.diagrams.model.ModelPackage"
genModel = "model/model.genmodel" />
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.tigerstripe.annotation.menus.annotations">
<separator
visible="true"
name="org.eclipse.tigerstripe.annotation.ui.diagrams.separator">
</separator>
<dynamic
class="org.eclipse.tigerstripe.annotation.ui.internal.diagrams.actions.ShowAnnotationTypesContributionItem"
id="org.eclipse.tigerstripe.annotation.ui.diagrams.actions.showTypes">
<visibleWhen>
<iterate>
<instanceof
value="org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart">
</instanceof>
</iterate>
</visibleWhen>
</dynamic>
<dynamic
class="org.eclipse.tigerstripe.annotation.ui.internal.diagrams.actions.HideAnnotationTypeContributionItem"
id="org.eclipse.tigerstripe.annotation.ui.diagrams.actions.hideTypes">
<visibleWhen>
<iterate>
<instanceof
value="org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart">
</instanceof>
</iterate>
</visibleWhen>
</dynamic>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
id="org.eclipse.tigerstripe.annotation.ui.diagram.annotations"
nameFilter="*"
objectClass="org.eclipse.tigerstripe.annotation.core.Annotation">
<action
class="org.eclipse.tigerstripe.annotation.ui.internal.diagrams.actions.ShowAnnotationOnDiagram"
enablesFor="1"
id="org.eclipse.tigerstripe.annotation.ui.diagram.annotation.show"
label="Show on diagram"
menubarPath="annotationProperties"
style="push"
tooltip="Show annotation on diagram">
</action>
<action
class="org.eclipse.tigerstripe.annotation.ui.internal.diagrams.actions.HideAnnotationOnDiagram"
enablesFor="1"
id="org.eclipse.tigerstripe.annotation.ui.diagram.annotation.hide"
label="Hide on diagram"
menubarPath="annotationProperties"
style="push"
tooltip="Hide annotation on diagram">
</action>
</objectContribution>
</extension>
</plugin>