Index: editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/internal/ui/OpenSearchPanelHandler.java |
=================================================================== |
--- editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/internal/ui/OpenSearchPanelHandler.java (revision 0) |
+++ editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/internal/ui/OpenSearchPanelHandler.java (revision 0) |
@@ -0,0 +1,31 @@ |
+/** |
+ * |
+ */ |
+package com.xored.glance.internal.ui; |
+ |
+import org.eclipse.core.commands.AbstractHandler; |
+import org.eclipse.core.commands.ExecutionEvent; |
+import org.eclipse.core.commands.ExecutionException; |
+ |
+import com.xored.glance.internal.ui.search.SearchManager; |
+ |
+/** |
+ * @author Yuri Strot |
+ */ |
+public class OpenSearchPanelHandler extends AbstractHandler { |
+ |
+ /** |
+ * The constructor. |
+ */ |
+ public OpenSearchPanelHandler() { |
+ } |
+ |
+ /** |
+ * the command has been executed, so extract extract the needed information from the application |
+ * context. |
+ */ |
+ public Object execute(ExecutionEvent event) throws ExecutionException { |
+ SearchManager.getIntance().activate(); |
+ return null; |
+ } |
+} |