Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/navigator/extensions.xpt')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/navigator/extensions.xpt176
1 files changed, 176 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/navigator/extensions.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/navigator/extensions.xpt
new file mode 100644
index 000000000..283d17861
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/navigator/extensions.xpt
@@ -0,0 +1,176 @@
+/*
+ * 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
+ */
+
+«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
+«IMPORT 'http://www.eclipse.org/emf/2002/GenModel'»
+
+«DEFINE extensions FOR gmfgen::GenNavigator-»
+ «EXPAND editorInputPropertyTester('URIEditorInput', 'org.eclipse.emf.common.ui.URIEditorInput', getUriInputTesterQualifiedClassName())-»
+«IF editorGen.diagram.generateShortcutIcon()-»
+
+ «EXPAND editorInputPropertyTester('Shortcut', 'org.eclipse.gmf.runtime.notation.View', editorGen.diagram.getShortcutPropertyTesterQualifiedClassName())-»
+«ENDIF-»
+«IF generateDomainModelNavigator and null <> editorGen.domainGenModel-»
+
+ «EXPAND editorInputPropertyTester('DomainModelElement', 'org.eclipse.emf.ecore.EObject', getDomainModelElementTesterQualifiedClassName())-»
+«ENDIF-»
+
+ «EXPAND registerBindings-»
+
+ <extension point="org.eclipse.ui.navigator.navigatorContent" id="navigator-content">
+ «EXPAND xpt::Common::xmlGeneratedTag»
+ <navigatorContent
+ id="«contentExtensionID»"
+ name="«contentExtensionName»"
+ priority="«contentExtensionPriority»"
+ contentProvider="«getContentProviderQualifiedClassName()»"
+ labelProvider="«getLabelProviderQualifiedClassName()»"
+ icon="«editorGen.editor.iconPathX»"
+ activeByDefault="true">
+ <triggerPoints>
+ <or>
+ <and>
+ <instanceof value="org.eclipse.core.resources.IFile"/>
+ <test property="org.eclipse.core.resources.extension" value="«editorGen.diagramFileExtension»"/>
+ </and>
+ <instanceof value="«getAbstractNavigatorItemQualifiedClassName()»"/>
+«IF editorGen.diagram.generateShortcutIcon()-»
+ <adapt type="org.eclipse.gmf.runtime.notation.View">
+ <test property="«editorGen.plugin.iD».isShortcut"/>
+ </adapt>
+«ENDIF-»
+ </or>
+ </triggerPoints>
+ <possibleChildren>
+ <or>
+ <instanceof value="«getAbstractNavigatorItemQualifiedClassName()»"/>
+«IF editorGen.diagram.generateShortcutIcon()-»
+ <adapt type="org.eclipse.gmf.runtime.notation.View">
+ <test property="«editorGen.plugin.iD».isShortcut"/>
+ </adapt>
+«ENDIF-»
+ </or>
+ </possibleChildren>
+ <commonSorter
+ id="«sorterExtensionID»"
+ class="«getSorterQualifiedClassName()»">
+ <parentExpression>
+ <or>
+ <and>
+ <instanceof value="org.eclipse.core.resources.IFile"/>
+ <test property="org.eclipse.core.resources.extension" value="«editorGen.diagramFileExtension»"/>
+ </and>
+ <instanceof value="«getAbstractNavigatorItemQualifiedClassName()»"/>
+ </or>
+ </parentExpression>
+ </commonSorter>
+ </navigatorContent>
+«IF generateDomainModelNavigator and null <> editorGen.domainGenModel-»
+ <navigatorContent
+ id="«domainContentExtensionID»"
+ name="«domainContentExtensionName»"
+ priority="«domainContentExtensionPriority»"
+ contentProvider="«getDomainContentProviderQualifiedClassName()»"
+ labelProvider="«getDomainLabelProviderQualifiedClassName()»"
+ icon="«editorGen.editor.iconPathX»"
+ activeByDefault="true">
+ <triggerPoints>
+ <or>
+ <and>
+ <instanceof value="org.eclipse.core.resources.IFile"/>
+ <test property="org.eclipse.core.resources.extension" value="«editorGen.domainFileExtension»"/>
+ </and>
+ <and>
+ <instanceof value="org.eclipse.emf.ecore.EObject"/>
+ <test property="«editorGen.plugin.iD».isDomainModelElement"/>
+ </and>
+ </or>
+ </triggerPoints>
+ <possibleChildren>
+ <and>
+ <instanceof value="org.eclipse.emf.ecore.EObject"/>
+ <test property="«editorGen.plugin.iD».isDomainModelElement"/>
+ </and>
+ </possibleChildren>
+ </navigatorContent>
+«ENDIF-»
+ <actionProvider
+ id="«actionProviderID»"
+ class="«getActionProviderQualifiedClassName()»">
+ <enablement>
+ <or>
+ <instanceof value="«getAbstractNavigatorItemQualifiedClassName()»"/>
+«IF editorGen.diagram.generateShortcutIcon()-»
+ <adapt type="org.eclipse.gmf.runtime.notation.View">
+ <test property="«editorGen.plugin.iD».isShortcut"/>
+ </adapt>
+«ENDIF-»
+ </or>
+ </enablement>
+ </actionProvider>
+ </extension>
+
+ «EXPAND registerLinkHelper-»
+«ENDDEFINE»
+
+«DEFINE editorInputPropertyTester(_property : String, type : String, testerClass : String) FOR gmfgen::GenNavigator-»
+ <extension point="org.eclipse.core.expressions.propertyTesters" id="navigator-proptest.is«_property»">
+ «EXPAND xpt::Common::xmlGeneratedTag»
+ <propertyTester
+ id="«editorGen.plugin.iD».«_property»PropertyTester"
+ type="«type»"
+ namespace="«editorGen.plugin.iD»"
+ properties="is«_property»"
+ class="«testerClass»">
+ </propertyTester>
+ </extension>
+«ENDDEFINE»
+
+«DEFINE registerBindings FOR gmfgen::GenNavigator-»
+ <extension point="org.eclipse.ui.navigator.viewer" id="navigator-viewbinding">
+ «EXPAND xpt::Common::xmlGeneratedTag»
+ <viewerContentBinding viewerId="org.eclipse.ui.navigator.ProjectExplorer">
+ <includes>
+ <contentExtension pattern="«contentExtensionID»"/>
+«IF generateDomainModelNavigator and null <> editorGen.domainGenModel-»
+ <contentExtension pattern="«domainContentExtensionID»"/>
+«ENDIF-»
+ <contentExtension pattern="«linkHelperExtensionID»"/>
+ </includes>
+ </viewerContentBinding>
+ <viewerActionBinding viewerId="org.eclipse.ui.navigator.ProjectExplorer">
+ <includes>
+ <actionExtension pattern="«actionProviderID»"/>
+ </includes>
+ </viewerActionBinding>
+ </extension>
+«ENDDEFINE»
+
+«DEFINE registerLinkHelper FOR gmfgen::GenNavigator-»
+ <extension point="org.eclipse.ui.navigator.linkHelper" id="navigator-linkhelper">
+ «EXPAND xpt::Common::xmlGeneratedTag»
+ <linkHelper
+ id="«linkHelperExtensionID»"
+ class="«getLinkHelperQualifiedClassName()»">
+ <editorInputEnablement>
+ <and>
+ <instanceof value="org.eclipse.emf.common.ui.URIEditorInput"/>
+ <test property="«editorGen.plugin.iD».isURIEditorInput"/>
+ </and>
+ </editorInputEnablement>
+ <selectionEnablement>
+ <instanceof value="«getAbstractNavigatorItemQualifiedClassName()»"/>
+ </selectionEnablement>
+ </linkHelper>
+ </extension>
+«ENDDEFINE» \ No newline at end of file

Back to the top