Searched refs:lineStart (Results 1 – 7 of 7) sorted by relevance
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
D | AndroidXmlAutoEditStrategy.java | 98 int lineStart = findLineStart(doc, offset); in customizeDocumentCommand() local 99 int textStart = findTextStart(doc, lineStart, offset); in customizeDocumentCommand() 108 if (textStart > lineStart) { in customizeDocumentCommand() 109 lineIndent = doc.get(lineStart, textStart - lineStart); in customizeDocumentCommand() 326 public static int findTextStart(IDocument document, int lineStart, int lineEnd) in findTextStart() argument 328 for (int offset = lineStart; offset < lineEnd; offset++) { in findTextStart() 352 int lineStart = findLineStart(doc, command.offset); in copyPreviousLineIndentation() local 353 int textStart = findTextStart(doc, lineStart, command.offset); in copyPreviousLineIndentation() 356 if (textStart > lineStart) { in copyPreviousLineIndentation() 357 sb.append(doc.get(lineStart, textStart - lineStart)); in copyPreviousLineIndentation()
|
D | AndroidContentAssist.java | 1073 int lineStart = lineInfo.getOffset(); in parseAttributeInfo() local 1074 String line = document.get(lineStart, lineInfo.getLength()); in parseAttributeInfo() 1075 int cursorColumn = originalOffset - lineStart; in parseAttributeInfo() 1160 int valueEndOffset = valueEnd + lineStart; in parseAttributeInfo() 1164 int valueStartOffset = valueStart + lineStart; in parseAttributeInfo()
|
D | Hyperlinks.java | 1349 int lineStart = lineInfo.getOffset(); in detectHyperlinks() local 1350 int lineEnd = Math.min(lineStart + lineInfo.getLength(), in detectHyperlinks() 1356 while (offset > lineStart) { in detectHyperlinks()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/ |
D | HyperlinksTest.java | 296 int lineStart = document.getLineInformationOfOffset(selection.x).getOffset(); in checkXmlNavigation() local 299 String text = document.get(lineStart, lineEnd - lineStart); in checkXmlNavigation() 300 int selectionStart = selection.x - lineStart; in checkXmlNavigation()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | VisualRefactoring.java | 1162 int lineStart = info.getOffset(); in removeIndentation() local 1164 int lineEnd = lineStart + lineLength; in removeIndentation() 1165 if (overlaps(lineStart, lineEnd, element, skip)) { in removeIndentation() 1168 String lineText = getText(lineStart, in removeIndentation() 1169 lineStart + Math.min(lineLength, indentLength)); in removeIndentation() 1171 rootEdit.addChild(new DeleteEdit(lineStart, indentLength)); in removeIndentation() 1193 int lineStart = info.getOffset(); in setIndentation() local 1195 int lineEnd = lineStart + lineLength; in setIndentation() 1196 if (overlaps(lineStart, lineEnd, element, skip)) { in setIndentation() 1199 String lineText = getText(lineStart, lineStart + lineLength); in setIndentation() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
D | AndroidXmlFormattingStrategy.java | 720 int lineStart = findLineStart(mDocument, region.getStartOffset()); in visit() local 721 int textStart = findTextStart(mDocument, lineStart, region.getEndOffset()); in visit() 727 String indent = mDocument.get(lineStart, in visit() 728 Math.max(0, textStart - lineStart)); in visit()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/ |
D | AdtUtils.java | 601 int lineStart = lineInfo.getOffset(); in findMarkersOnLine() local 602 int lineEnd = lineStart + lineInfo.getLength(); in findMarkersOnLine() 609 if (start >= lineStart && start <= lineEnd && end > start) { in findMarkersOnLine()
|