Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates.migrated/impl/actions/MenuAction.qvto')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/impl/actions/MenuAction.qvto11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/impl/actions/MenuAction.qvto b/plugins/org.eclipse.gmf.codegen/templates.migrated/impl/actions/MenuAction.qvto
new file mode 100644
index 000000000..ac0840e3b
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/impl/actions/MenuAction.qvto
@@ -0,0 +1,11 @@
+modeltype genModel uses "http://www.eclipse.org/gmf/2008/GenModel";
+
+library MenuAction;
+
+helper hasCommandsToContribute(editorGen : genModel::GenEditorGenerator) : Boolean {
+ return not editorGen.contextMenus->isEmpty()
+}
+
+helper hasHandlersToContribute(editorGen : genModel::GenEditorGenerator) : Boolean {
+ return hasCommandsToContribute(editorGen)
+}

Back to the top