Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1624)

Unified Diff: editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/internal/ui/OpenSearchPanelHandler.java

Issue 17431004: New UI for Find command: find-as-you-type. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698