Package editor
Class DynamicSelectionManager
java.lang.Object
editor.DynamicSelectionManager
- All Implemented Interfaces:
EventListener,CaretListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddNextSelection(ArrayList<Point> expansionList) voidprivate booleanvoidvoidexpandSelection(boolean updateIndex) private PointfindNewLineWithinStatementList(IParseTree spanningLocation) private intprivate intgetWordEnd(JTextComponent editor, int y) private intgetWordStart(JTextComponent editor, int x) private booleanisIdentifier(String possibleWord) private PointmakePoint(IParseTree spanningLocation) voidprivate voidsetSelection(Point point) private voidupdateIndexBasedOnCurrentSelection(boolean expanding)
-
Field Details
-
_start
private int _start -
_updating
private boolean _updating -
_gsEditor
-
_expansionList
-
_expansionIndex
private int _expansionIndex
-
-
Constructor Details
-
DynamicSelectionManager
-
-
Method Details
-
expandSelection
public void expandSelection() -
expandSelection
public void expandSelection(boolean updateIndex) -
reduceSelection
public void reduceSelection() -
updateIndexBasedOnCurrentSelection
private void updateIndexBasedOnCurrentSelection(boolean expanding) -
setSelection
-
getExpansionsList
-
addNextSelection
-
findNewLineWithinStatementList
-
isIdentifier
-
getWordEnd
-
getWordStart
-
contains
-
makePoint
-
getOffsetShift
private int getOffsetShift() -
caretUpdate
- Specified by:
caretUpdatein interfaceCaretListener
-