com.borland.primetime.editor
Class SearchManager.FindAllMessage

java.lang.Object
  |
  +--com.borland.primetime.ide.Message
        |
        +--com.borland.primetime.editor.SearchManager.FindAllMessage
Enclosing class:
SearchManager

public static class SearchManager.FindAllMessage
extends Message

Helper class to store the editor related details of a message created from a match in a search. The main purpose of this class is to go to the place in the editor that corresponds to the match message when that message is clicked in the message view.


Fields inherited from class com.borland.primetime.ide.Message
actionEvent, background, contextAction, font, foreground, helpAction, icon, lazyFetchChildren, messageAction, renderer, selectAction, text, toolTipText
 
Constructor Summary
SearchManager.FindAllMessage(EditorPane editor, javax.swing.text.Position pos, int line, int column, int length, java.lang.String searchText, java.lang.String matchLine)
          Create a new object.
 
Method Summary
 void messageAction(Browser browser)
          Called when this message is activated in the MessageView.
 void selectAction(Browser browser)
          Called when this message is selected in the MessageView.
 
Methods inherited from class com.borland.primetime.ide.Message
fetchChildren, getBackground, getCellRenderer, getContextAction, getFont, getForeground, getHelpAction, getIcon, getMessageAction, getSelectAction, getText, getToolTipText, isLazyFetchChildren, 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
 

Constructor Detail

SearchManager.FindAllMessage

public SearchManager.FindAllMessage(EditorPane editor,
                                    javax.swing.text.Position pos,
                                    int line,
                                    int column,
                                    int length,
                                    java.lang.String searchText,
                                    java.lang.String matchLine)
Create a new object.
Parameters:
editor - The editor where the match was found.
pos - The position where the match was found.
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.
Method Detail

selectAction

public void selectAction(Browser browser)
Called when this message is selected in the MessageView. In this case, the editor associated with this message is not given focus.
Overrides:
selectAction in class Message
Parameters:
browser - The browser containing the editor that should show the match.

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
Parameters:
browser - The browser containing the editor that should show the match.