Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2008-12-29 07:41:38 -0500
committerashatalin2008-12-29 07:41:38 -0500
commitfc1dfb3b462e159eec1b6031bb41ab79c762474b (patch)
tree66acb7873f68640147106dcd919a5041ecbc918b /plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/editor/extensions.xpt
parent7f3bb1960b122d5d9c4edae8dc1c330032c9cf60 (diff)
downloadorg.eclipse.gmf-tooling-fc1dfb3b462e159eec1b6031bb41ab79c762474b.tar.gz
org.eclipse.gmf-tooling-fc1dfb3b462e159eec1b6031bb41ab79c762474b.tar.xz
org.eclipse.gmf-tooling-fc1dfb3b462e159eec1b6031bb41ab79c762474b.zip
QVTO-based xpand implementation was merged to HEAD
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/editor/extensions.xpt')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/editor/extensions.xpt86
1 files changed, 86 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/editor/extensions.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/editor/extensions.xpt
new file mode 100644
index 000000000..a4c3889bf
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/editor/extensions.xpt
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2007, 2008 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'»
+
+«DEFINE extensions FOR gmfgen::GenEditorGenerator»
+ <extension point="org.eclipse.ui.editors" id="gmf-editor">
+ «EXPAND xpt::Common::xmlGeneratedTag»
+ <editor
+ id="«editor.iD»"
+ name="%editorName"
+ icon="«editor.iconPathX»"
+ extensions="«diagramFileExtension»"
+ default="true"
+ class="«editor.getQualifiedClassName()»"
+ matchingStrategy="«diagram.getMatchingStrategyQualifiedClassName()»"
+ contributorClass="«editor.getActionBarContributorQualifiedClassName()»">
+ </editor>
+ </extension>
+
+ <extension point="org.eclipse.ui.contexts" id="ui-context">
+ «EXPAND xpt::Common::xmlGeneratedTag»
+ <context
+ description="%context.description"
+ id="«editor.contextID»"
+ name="%context.name"
+ parentId="org.eclipse.gmf.runtime.diagram.ui.diagramContext">
+ </context>
+ </extension>
+
+ <extension point="org.eclipse.ui.newWizards" id="creation-wizard">
+ «EXPAND xpt::Common::xmlGeneratedTag»
+ <wizard
+ name="%newWizardName"
+ icon="«diagram.creationWizardIconPathX»"
+ category="«diagram.creationWizardCategoryID»"
+ class="«diagram.getCreationWizardQualifiedClassName()»"
+ id="«diagram.getCreationWizardQualifiedClassName()»ID">
+ <description>%newWizardDesc</description>
+ </wizard>
+ </extension>
+
+«IF diagram.generateInitDiagramAction()-»
+ «IF null = application»<extension point="org.eclipse.ui.popupMenus" id="init-diagram-action">
+ «EXPAND xpt::Common::xmlGeneratedTag»
+ <objectContribution
+ id="«plugin.iD».InitDiagram"
+ nameFilter="*.«domainFileExtension»"
+ objectClass="org.eclipse.core.resources.IFile">
+ <action
+ label="%initDiagramActionLabel"
+ class="«diagram.getInitDiagramFileActionQualifiedClassName()»"
+ menubarPath="additions"
+ enablesFor="1"
+ id="«plugin.iD».InitDiagramAction">
+ </action>
+ </objectContribution>
+ </extension>
+ «ELSE-»
+ <extension point="org.eclipse.ui.actionSets" id="init-diagram-action">
+ «EXPAND xpt::Common::xmlGeneratedTag»
+ <actionSet
+ label="%initDiagramActionLabel"
+ visible="true"
+ id="«plugin.iD».InitDiagram">
+ <action
+ label="%initDiagramActionLabel"
+ class="«diagram.getInitDiagramFileActionQualifiedClassName()»"
+ menubarPath="file/additions"
+ id="«plugin.iD».InitDiagramAction">
+ </action>
+ </actionSet>
+ </extension>
+ «ENDIF-»
+«ENDIF-»
+«ENDDEFINE»

Back to the top