Source code: com/port80/eclipse/util/IIncrementalFindTreeTarget.java
1 package com.port80.eclipse.util;
2
3 import org.eclipse.jface.viewers.StructuredSelection;
4
5 /**
6 * Interface to allow incremental find action on the implementation object.
7 *
8 * @author chrisl
9 */
10 public interface IIncrementalFindTreeTarget {
11
12 public boolean canPerformFind();
13 public boolean isEditable();
14 public StructuredSelection getSelection();
15 /** Get text representation of the currently selected item. */
16 public String getSelectionText();
17 public void setSelection(Object object);
18 /** Find item with the given string and select it. */
19 public int findAndSelect(int start, String findString, boolean searchForward, boolean caseSensitive);
20 /** Begin an incremental find session. This should be called before any increment find action can proceed. */
21 public void beginSession(boolean forward,String defaultString);
22 /** End an incremental find session. This should be called at the end of every incremental find session.*/
23 public void endSession();
24 }