]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms.ui.workbench/src/org/argeo/eclipse/ui/workbench/commands/DoNothing.java
Merge org.argeo.eclipse.ui.workbench in org.argeo.cms.ui.workbench
[lgpl/argeo-commons.git] / org.argeo.cms.ui.workbench / src / org / argeo / eclipse / ui / workbench / commands / DoNothing.java
diff --git a/org.argeo.cms.ui.workbench/src/org/argeo/eclipse/ui/workbench/commands/DoNothing.java b/org.argeo.cms.ui.workbench/src/org/argeo/eclipse/ui/workbench/commands/DoNothing.java
new file mode 100644 (file)
index 0000000..1a1808a
--- /dev/null
@@ -0,0 +1,15 @@
+package org.argeo.eclipse.ui.workbench.commands;
+
+import org.argeo.cms.ui.workbench.SecurityUiPlugin;
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+
+/** Utilitary command to enable sub menus in various toolbars. Does nothing */
+public class DoNothing extends AbstractHandler {
+       public final static String ID = SecurityUiPlugin.PLUGIN_ID + ".doNothing";
+
+       public Object execute(ExecutionEvent event) throws ExecutionException {
+               return null;
+       }
+}