Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2015-05-26 16:38:49 -0400
committerAnsgar Radermacher2015-05-27 07:07:14 -0400
commit6b7850da353a815be7c4626b22081da142fcc253 (patch)
tree18d6a188412a6b8b761b42f6a759ac37295c5469
parentd0024a664a8758da3b9fa7902767a200c9201e4b (diff)
downloadorg.eclipse.papyrus-6b7850da353a815be7c4626b22081da142fcc253.tar.gz
org.eclipse.papyrus-6b7850da353a815be7c4626b22081da142fcc253.tar.xz
org.eclipse.papyrus-6b7850da353a815be7c4626b22081da142fcc253.zip
468249 - [C++ codegen] Code generation context menu is missing
Change-Id: I7ef3b3aa4cf35451177b1bd798c82f07cd5657ef Reviewed-on: https://git.eclipse.org/r/48748 Reviewed-by: Ansgar Radermacher <ansgar.radermacher@cea.fr> Tested-by: Ansgar Radermacher <ansgar.radermacher@cea.fr>
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.codegen.base/build.properties3
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.codegen.base/plugin.xml26
2 files changed, 28 insertions, 1 deletions
diff --git a/extraplugins/codegen/org.eclipse.papyrus.codegen.base/build.properties b/extraplugins/codegen/org.eclipse.papyrus.codegen.base/build.properties
index cdd2db7f1f5..f70828ba55f 100644
--- a/extraplugins/codegen/org.eclipse.papyrus.codegen.base/build.properties
+++ b/extraplugins/codegen/org.eclipse.papyrus.codegen.base/build.properties
@@ -3,5 +3,6 @@ output.. = bin/
bin.includes = META-INF/,\
.,\
about.html,\
- plugin.properties
+ plugin.properties,\
+ plugin.xml
src.includes = about.html
diff --git a/extraplugins/codegen/org.eclipse.papyrus.codegen.base/plugin.xml b/extraplugins/codegen/org.eclipse.papyrus.codegen.base/plugin.xml
new file mode 100644
index 00000000000..10ffe8d6e48
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.codegen.base/plugin.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+
+<extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ allPopups="true"
+ locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup">
+ <menu
+ icon="icons/codegen-16x16.gif"
+ id="org.eclipse.papyrus.views.modelexplorer.popup.codegen"
+ label="Code generation">
+ </menu>
+ </menuContribution>
+ <menuContribution
+ allPopups="true"
+ locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu?after=filtersMenu">
+ <menu
+ icon="icons/codegen-16x16.gif"
+ id="org.eclipse.papyrus.views.modelexplorer.popup.codegen"
+ label="Code generation">
+ </menu>
+ </menuContribution>
+</extension>
+</plugin>

Back to the top