| java.lang.Object org.eclipse.ui.examples.javaeditor.java.JavaDoubleClickSelector
JavaDoubleClickSelector | public class JavaDoubleClickSelector implements ITextDoubleClickStrategy(Code) | | Double click strategy aware of Java identifier syntax rules.
|
Method Summary | |
public void | doubleClicked(ITextViewer text) | protected boolean | matchBracketsAt() Match the brackets at the current selection. | protected boolean | matchWord() Select the word at the current selection location. | protected int | searchForClosingBracket(int startPosition, char openBracket, char closeBracket, IDocument document) Returns the position of the closing bracket after startPosition . | protected int | searchForOpenBracket(int startPosition, char openBracket, char closeBracket, IDocument document) Returns the position of the open bracket before startPosition . | protected boolean | selectBracketBlock() Select the area between the selected bracket and the closing bracket. | protected void | selectWord() Select the word at the current selection. |
fEndPos | protected int fEndPos(Code) | | |
fStartPos | protected int fStartPos(Code) | | |
fText | protected ITextViewer fText(Code) | | |
fgBrackets | protected static char[] fgBrackets(Code) | | |
JavaDoubleClickSelector | public JavaDoubleClickSelector()(Code) | | |
doubleClicked | public void doubleClicked(ITextViewer text)(Code) | | |
matchBracketsAt | protected boolean matchBracketsAt()(Code) | | Match the brackets at the current selection. Return true if successful,
false otherwise.
true if brackets match, false otherwise |
matchWord | protected boolean matchWord()(Code) | | Select the word at the current selection location. Return true if successful,
false otherwise.
true if a word can be found at the current selection location, false otherwise |
searchForClosingBracket | protected int searchForClosingBracket(int startPosition, char openBracket, char closeBracket, IDocument document) throws BadLocationException(Code) | | Returns the position of the closing bracket after startPosition .
Parameters: startPosition - - the beginning position Parameters: openBracket - - the character that represents the open bracket Parameters: closeBracket - - the character that represents the close bracket Parameters: document - - the document being searched the location of the closing bracket. throws: BadLocationException - in case startPosition is invalid in the document |
searchForOpenBracket | protected int searchForOpenBracket(int startPosition, char openBracket, char closeBracket, IDocument document) throws BadLocationException(Code) | | Returns the position of the open bracket before startPosition .
Parameters: startPosition - - the beginning position Parameters: openBracket - - the character that represents the open bracket Parameters: closeBracket - - the character that represents the close bracket Parameters: document - - the document being searched the location of the starting bracket. throws: BadLocationException - in case startPosition is invalid in the document |
selectBracketBlock | protected boolean selectBracketBlock()(Code) | | Select the area between the selected bracket and the closing bracket.
true if selection was successful, false otherwise |
selectWord | protected void selectWord()(Code) | | Select the word at the current selection.
|
|
|