Searched refs:selectedRange (Results 1 – 3 of 3) sorted by relevance
81 Point selectedRange = viewer.getSelectedRange(); in checkInsertNewline() local82 assert selectedRange.y == 0; in checkInsertNewline()84 if (selectedRange.x >= 0) { in checkInsertNewline()85 textWithCaret = text.substring(0, selectedRange.x) + "^" + in checkInsertNewline()86 text.substring(selectedRange.x); in checkInsertNewline()
195 Point selectedRange = newViewer.getSelectedRange(); in checkResourceFix() local200 String newFileWithCaret = addSelection(newFileContents, selectedRange); in checkResourceFix()
385 protected String addSelection(String newFileContents, Point selectedRange) { in addSelection() argument386 int selectionBegin = selectedRange.x; in addSelection()387 int selectionEnd = selectionBegin + selectedRange.y; in addSelection()