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

Unified Diff: editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/panels/ISearchPanel.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/ui/panels/ISearchPanel.java
===================================================================
--- editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/panels/ISearchPanel.java (revision 0)
+++ editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/panels/ISearchPanel.java (revision 0)
@@ -0,0 +1,54 @@
+/**
+ *
+ */
+package com.xored.glance.ui.panels;
+
+import org.eclipse.swt.widgets.Control;
+
+import com.xored.glance.internal.ui.search.ISearchListener;
+import com.xored.glance.internal.ui.search.SearchRule;
+
+/**
+ * @author Yuri Strot
+ */
+public interface ISearchPanel extends ISearchListener {
+
+ public static int INDEXING_STATE_DISABLE = 0;
+
+ public static int INDEXING_STATE_INITIAL = 1;
+
+ public static int INDEXING_STATE_IN_PROGRESS = 2;
+
+ public static int INDEXING_STATE_FINISHED = 3;
+
+ public void addPanelListener(ISearchPanelListener listener);
+
+ public void removePanelListener(ISearchPanelListener listener);
+
+ public void setEnabled(boolean enabled);
+
+ public boolean isApplicable(Control control);
+
+ public Control getControl();
+
+ public void setIndexingState(int state);
+
+ public void updateIndexingPercent(double percent);
+
+ public void newTask(String name);
+
+ /**
+ * Set focus to search panel with some initial text
+ */
+ public void setFocus(String text);
+
+ public SearchRule getRule();
+
+ public void closePanel();
+
+ public void findNext();
+
+ public void findPrevious();
+
+ public void clearHistory();
+}

Powered by Google App Engine
This is Rietveld 408576698