Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorytanguy2010-07-01 22:32:39 +0000
committerytanguy2010-07-01 22:32:39 +0000
commitd63ff05ee46dd721b183c39ac8a2af60b19d9f09 (patch)
tree8476adf9d3483c208e29303b6236439c7c0d5bfd /plugins/developer
parent9f90d0ce74db29de010890b390aa99c174d23d25 (diff)
downloadorg.eclipse.papyrus-d63ff05ee46dd721b183c39ac8a2af60b19d9f09.tar.gz
org.eclipse.papyrus-d63ff05ee46dd721b183c39ac8a2af60b19d9f09.tar.xz
org.eclipse.papyrus-d63ff05ee46dd721b183c39ac8a2af60b19d9f09.zip
NEW - bug 318094: [Generative Tools] Avoiding unused extensions to be generated in plugin.xml
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318094
Diffstat (limited to 'plugins/developer')
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/dynamic-templates3.5/codegen/aspects/xpt/plugin/plugin.xpt2
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/dynamic-templates3.5/codegen/xpt/editor/extensions.xpt87
2 files changed, 88 insertions, 1 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.def/dynamic-templates3.5/codegen/aspects/xpt/plugin/plugin.xpt b/plugins/developer/org.eclipse.papyrus.def/dynamic-templates3.5/codegen/aspects/xpt/plugin/plugin.xpt
index 89762689f7d..9f9935a1c10 100644
--- a/plugins/developer/org.eclipse.papyrus.def/dynamic-templates3.5/codegen/aspects/xpt/plugin/plugin.xpt
+++ b/plugins/developer/org.eclipse.papyrus.def/dynamic-templates3.5/codegen/aspects/xpt/plugin/plugin.xpt
@@ -31,7 +31,7 @@
<plugin>
«REM»YT (not used): «EXPAND fileTypes-»«ENDREM»
«REM»YT (not used): «EXPAND extension_parser-»«ENDREM»
-«REM»YT (not used): «EXPAND xpt::editor::extensions::extensions FOR editorGen-»«ENDREM»
+«EXPAND xpt::editor::extensions::extensions FOR editorGen-»
«EXPAND xpt::plugin::plugin::menu-»
«EXPAND xpt::plugin::plugin::validation FOR editorGen.diagram-»
«EXPAND xpt::plugin::plugin::metrics FOR editorGen.metrics-»
diff --git a/plugins/developer/org.eclipse.papyrus.def/dynamic-templates3.5/codegen/xpt/editor/extensions.xpt b/plugins/developer/org.eclipse.papyrus.def/dynamic-templates3.5/codegen/xpt/editor/extensions.xpt
new file mode 100644
index 00000000000..5ce327cd843
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.def/dynamic-templates3.5/codegen/xpt/editor/extensions.xpt
@@ -0,0 +1,87 @@
+/*
+ * Copyright (c) 2007, 2009 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/2009/GenModel'»
+
+«DEFINE extensions FOR gmfgen::GenEditorGenerator»
+«REM»YT (not used):
+ <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>
+«ENDREM»
+ <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>
+«REM»YT (not used):
+ <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-»
+«ENDREM»
+«ENDDEFINE»

Back to the top