com.borland.primetime.editor
Class SearchManager.SearchPathResultMessage
java.lang.Object
|
+--com.borland.primetime.ide.Message
|
+--com.borland.primetime.editor.SearchManager.SearchPathResultMessage
- Enclosing class:
- SearchManager
- public static class SearchManager.SearchPathResultMessage
- extends Message
- implements SearchResultsListener
Fields inherited from class com.borland.primetime.ide.Message |
actionEvent,
background,
contextAction,
font,
foreground,
helpAction,
icon,
lazyFetchChildren,
messageAction,
renderer,
selectAction,
text,
toolTipText |
Method Summary |
void |
fetchChildren(Browser browser)
Subclasses should override this method if they wish to add a single
parent Message to the MessageView and display it as expandable (with a "+"
box). |
void |
matchFound(EditorPane editor,
int line,
int column,
int length,
java.lang.String searchText,
java.lang.String matchLine)
Invoked when a search match is found. |
void |
messageAction(Browser browser)
Called when this message is activated in the MessageView. |
Methods inherited from class com.borland.primetime.ide.Message |
getBackground,
getCellRenderer,
getContextAction,
getFont,
getForeground,
getHelpAction,
getIcon,
getMessageAction,
getSelectAction,
getText,
getToolTipText,
isLazyFetchChildren,
selectAction,
setBackground,
setCellRenderer,
setContextAction,
setFont,
setForeground,
setHelpAction,
setIcon,
setLazyFetchChildren,
setMessageAction,
setSelectAction,
setText,
setToolTipText,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
SearchManager.SearchPathResultMessage
public SearchManager.SearchPathResultMessage(Project project,
MessageView mv,
Url path,
SearchOptions opts)
messageAction
public void messageAction(Browser browser)
- Called when this message is activated in the MessageView. In this case,
the editor associated with this message is given focus.
- Overrides:
- messageAction in class Message
fetchChildren
public void fetchChildren(Browser browser)
- Description copied from class: Message
Subclasses should override this method if they wish to add a single
parent Message to the MessageView and display it as expandable (with a "+"
box). When the message is expanded the first time, this method is called.
The message is expected to then add child messages to this parent message
via the passed Browser's MessageView.
NOTE: The boolean 'lazyFetchChildren' property MUST be set to true for
this method to ever be called.
- Overrides:
- fetchChildren in class Message
matchFound
public void matchFound(EditorPane editor,
int line,
int column,
int length,
java.lang.String searchText,
java.lang.String matchLine)
- Description copied from interface: SearchResultsListener
- Invoked when a search match is found.
- Specified by:
- matchFound in interface SearchResultsListener
- Tags copied from interface: SearchResultsListener
- Parameters:
line
- The line on which the start of the match was found.column
- The column on which the start of the match was found.length
- The length of the match (important for regular expressions).searchText
- The text that was searched for.matchLine
- The line containing the start of the text which was matched.