Home
last modified time | relevance | path

Searched refs:caretDelta (Results 1 – 3 of 3) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRefactoringAssistantTest.java62 int caretDelta = caretLocation.indexOf("^"); in checkFixes() local
63 assertTrue(caretLocation, caretDelta != -1); in checkFixes()
64 String caretContext = caretLocation.substring(0, caretDelta) in checkFixes()
65 + caretLocation.substring(caretDelta + "^".length()); in checkFixes()
69 final int offset = caretContextIndex + caretDelta; in checkFixes()
DAdtProjectTest.java349 int caretDelta = caretLocation.indexOf("^"); //$NON-NLS-1$ in updateCaret() local
350 assertTrue(caretLocation, caretDelta != -1); in updateCaret()
359 caretDelta--; in updateCaret()
360 assertTrue(caretLocation, caretLocation.startsWith("[^", caretDelta)); //$NON-NLS-1$ in updateCaret()
362 int caretRangeEnd = caretLocation.indexOf(']', caretDelta + 2); in updateCaret()
364 length = caretRangeEnd - caretDelta - 2; in updateCaret()
366 caretContext = caretLocation.substring(0, caretDelta) in updateCaret()
367 + caretLocation.substring(caretDelta + 2, caretRangeEnd) in updateCaret()
370 caretContext = caretLocation.substring(0, caretDelta) in updateCaret()
371 + caretLocation.substring(caretDelta + 1); // +1: skip "^" in updateCaret()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DEclipseXmlPrettyPrinterTest.java104 int caretDelta = caretLocation.indexOf("^"); //$NON-NLS-1$ in getCaretOffset() local
105 assertTrue(caretLocation, caretDelta != -1); in getCaretOffset()
107 String caretContext = caretLocation.substring(0, caretDelta) in getCaretOffset()
108 + caretLocation.substring(caretDelta + 1); // +1: skip "^" in getCaretOffset()
112 return caretContextIndex + caretDelta; in getCaretOffset()