/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
D | AndroidXmlCharacterMatcher.java | 65 IStructuredDocumentRegion region = doc.getRegionAtCharacterOffset(offset); in findOppositeTag() local 66 if (region == null) { in findOppositeTag() 70 ITextRegion subRegion = region.getRegionAtCharacterOffset(offset); in findOppositeTag() 74 ITextRegionList subRegions = region.getRegions(); in findOppositeTag() 86 (subRegion.getStart() + region.getStartOffset() == offset)) { in findOppositeTag() 91 region = doc.getRegionAtCharacterOffset(offset); in findOppositeTag() 92 if (region == null) { in findOppositeTag() 95 subRegion = region.getRegionAtCharacterOffset(offset); in findOppositeTag() 101 subRegions = region.getRegions(); in findOppositeTag() 121 int target = findTagForwards(doc, subRegion.getStart() + region.getStartOffset(), 0); in findOppositeTag() [all …]
|
D | AndroidXmlAutoEditStrategy.java | 101 IStructuredDocumentRegion region = doc.getRegionAtCharacterOffset(textStart); in customizeDocumentCommand() local 102 if (region != null && region.getType().equals(XML_TAG_NAME)) { in customizeDocumentCommand() 177 } else if (region != null && region.getType().equals(XML_CONTENT)) { in customizeDocumentCommand() 198 String text = region.getText(); in customizeDocumentCommand() 199 int regionStart = region.getStartOffset(); in customizeDocumentCommand() 210 IStructuredDocumentRegion previous = region.getPrevious(); in customizeDocumentCommand() 269 IStructuredDocumentRegion next = region.getNext(); in customizeDocumentCommand() 380 IStructuredDocumentRegion region = in getRegionAt() local 382 if (region != null) { in getRegionAt() 383 return region.getRegionAtCharacterOffset(offset); in getRegionAt() [all …]
|
D | Hyperlinks.java | 580 private static void openPath(IPath filePath, IRegion region, int offset) { in openPath() argument 587 AdtPlugin.openFile(file, region); in openPath() 975 IRegion region = null; in findValueInChildren() local 980 region = new Region(r.getStartOffset(), length); in findValueInChildren() 983 return Pair.of(file, region); in findValueInChildren() 1049 IRegion region = null; in findIdInElement() local 1055 region = new Region(r.getStartOffset(), length); in findIdInElement() 1058 return Pair.of(file, region); in findIdInElement() 1294 public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, in detectHyperlinks() argument 1297 if (region == null || textViewer == null) { in detectHyperlinks() [all …]
|
D | AndroidXmlEditor.java | 1064 IndexedRegion region = (IndexedRegion) node; 1065 int begin = region.getStartOffset(); 1066 int end = region.getEndOffset(); 1285 IndexedRegion region = (IndexedRegion)xmlNode; 1295 int regionLength = region.getEndOffset() - region.getStartOffset(); 1296 editor.selectAndReveal(region.getStartOffset(), regionLength); 1352 IndexedRegion region = (IndexedRegion) xmlNode; 1353 int start = region.getStartOffset(); 1354 int end = region.getEndOffset(); 1475 IndexedRegion region = (IndexedRegion) node; [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
D | FlagManager.java | 94 public Image getFlag(@Nullable String language, @Nullable String region) { in getFlag() argument 95 assert region != null || language != null; in getFlag() 96 if (region == null || region.isEmpty()) { in getFlag() 123 region = LocaleManager.getLanguageRegion(language); in getFlag() 126 if (region == null || region.isEmpty()) { in getFlag() 132 return getIcon(region); in getFlag() 191 public Image getFlag(@NonNull String region) { in getFlag() argument 192 assert region.length() == 2 in getFlag() 193 && Character.isUpperCase(region.charAt(0)) in getFlag() 194 && Character.isUpperCase(region.charAt(1)) : region; in getFlag() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
D | RefactoringUtil.java | 130 IndexedRegion region = (IndexedRegion) attr; in getAttributeValueRangeStart() local 134 text = document.get(region.getStartOffset(), in getAttributeValueRangeStart() 135 region.getEndOffset() - region.getStartOffset()); in getAttributeValueRangeStart() 142 return region.getStartOffset() + index; in getAttributeValueRangeStart() 158 IndexedRegion region = (IndexedRegion) element; in getTagNameRangeStart() local 162 text = document.get(region.getStartOffset(), in getTagNameRangeStart() 163 region.getEndOffset() - region.getStartOffset()); in getTagNameRangeStart() 169 return region.getStartOffset() + index; in getTagNameRangeStart()
|
/sdk/docs/ |
D | Notes_on_WST_StructuredDocument.txt | 47 The document contains a list of region collections, each one being 48 a list of regions. Each region has a type, as well as text. 137 ITextRegion region = regions.getRegions().get(i); 138 String type = region.getType(); 139 String text = regions.getText(region); 143 Each "region collection" basically matches one XML tag, with sub-regions for all the tokens 146 Note that an XML_CONTENT region is actually the whitespace, was is known as a TEXT in the w3c DOM. 148 Also note that each outer region has a type, but the inner regions also reuse a similar type. 149 So for example an outer XML_TAG_NAME region collection is a proper XML tag, and it will contain 159 XML_TAG_NAME region, getLength is 7 (string + space) and getTextLength is 6 (string, no space). [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
D | AaptParser.java | 539 IRegion region = findRange((IFile) f2, line, message); in checkAndMark() local 540 if (region != null) { in checkAndMark() 541 startOffset = region.getOffset(); in checkAndMark() 542 endOffset = startOffset + region.getLength(); in checkAndMark() 649 IRegion region = findRange(file, line, '<' + elementName, null); in findRange() local 650 if (region != null && region.getLength() > 1) { in findRange() 652 region = new Region(region.getOffset() + 1, region.getLength() - 1); in findRange() 654 return region; in findRange() 671 IRegion region = null; in findRange() local 687 region = adapter.find(lineStartOffset, first, in findRange() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
D | FlagManagerTest.java | 122 for (String region : LocaleManager.getRelevantRegions(language)) { in testAvailableImages() 123 reachable.add(region); in testAvailableImages() 124 regionToLanguages.put(region, language); in testAvailableImages() 129 for (String region : reachable) { in testAvailableImages() 130 if (!sImages.contains(region)) { in testAvailableImages() 133 sb.append("No icon found for region ").append(region).append(" ") in testAvailableImages() 134 .append(LocaleManager.getRegionName(region)); in testAvailableImages() 137 for (String language : regionToLanguages.get(region)) { in testAvailableImages()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | VisualRefactoring.java | 170 IndexedRegion region = (IndexedRegion) element; in VisualRefactoring() local 171 start = Math.min(start, region.getStartOffset()); in VisualRefactoring() 172 end = Math.max(end, region.getEndOffset()); in VisualRefactoring() 207 IndexedRegion region = (IndexedRegion) xmlNode; in VisualRefactoring() local 209 start = Math.min(start, region.getStartOffset()); in VisualRefactoring() 210 end = Math.max(end, region.getEndOffset()); in VisualRefactoring() 369 IStructuredDocumentRegion region = doc.getFirstStructuredDocumentRegion(); in replaceIds() local 370 for (; region != null; region = region.getNext()) { in replaceIds() 371 ITextRegionList list = region.getRegions(); in replaceIds() 372 int regionStart = region.getStart(); in replaceIds() [all …]
|
D | RefactoringAssistant.java | 114 IStructuredDocumentRegion region = doc.getRegionAtCharacterOffset(offset); in computeQuickAssistProposals() local 115 ITextRegion subRegion = region.getRegionAtCharacterOffset(offset); in computeQuickAssistProposals() 119 String value = region.getText(subRegion); in computeQuickAssistProposals() 133 String name = region.getText(subRegion); in computeQuickAssistProposals() 175 IndexedRegion region = (IndexedRegion) node; in computeQuickAssistProposals() local 176 int startOffset = region.getStartOffset(); in computeQuickAssistProposals() 177 int length = region.getEndOffset() - region.getStartOffset(); in computeQuickAssistProposals()
|
D | ChangeViewRefactoring.java | 171 IndexedRegion region = getRegion(element); in computeChanges() local 172 String text = getText(region.getStartOffset(), region.getEndOffset()); in computeChanges() 182 rootEdit.addChild(new ReplaceEdit(region.getStartOffset() + open, in computeChanges() 187 rootEdit.addChild(new ReplaceEdit(region.getStartOffset() + close, oldLength, in computeChanges()
|
D | WrapInRefactoring.java | 244 IndexedRegion region = (IndexedRegion) attribute; in computeChanges() local 245 int startOffset = region.getStartOffset(); in computeChanges() 246 int endOffset = region.getEndOffset(); in computeChanges() 343 IndexedRegion region = (IndexedRegion) attribute; in computeChanges() local 344 int startOffset = region.getStartOffset(); in computeChanges() 345 int endOffset = region.getEndOffset(); in computeChanges()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/renamepackage/ |
D | ApplicationPackageNameRefactoring.java | 237 for (IStructuredDocumentRegion region : sdoc.getStructuredDocumentRegions()) { in editXmlResourceFile() 239 if (!DOMRegionContext.XML_TAG_NAME.equals(region.getType())) { in editXmlResourceFile() 243 int nb = region.getNumberOfRegions(); in editXmlResourceFile() 244 ITextRegionList list = region.getRegions(); in editXmlResourceFile() 253 lastAttrName = region.getText(subRegion); in editXmlResourceFile() 261 String lastAttrValue = region.getText(subRegion); in editXmlResourceFile() 266 region.getStartOffset() + subRegion.getStart(), in editXmlResourceFile() 327 for (IStructuredDocumentRegion region : sdoc.getStructuredDocumentRegions()) { in editAndroidManifest() 330 if (!DOMRegionContext.XML_TAG_NAME.equals(region.getType())) { in editAndroidManifest() 334 int nb = region.getNumberOfRegions(); in editAndroidManifest() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/ |
D | PasteAction.java | 85 IndexedRegion region = (IndexedRegion) xml_node; in run() 86 sse_doc.replace(region.getStartOffset(), 0, data); in run() 113 IndexedRegion region = (IndexedRegion) xml_node; in run() 114 sse_doc.replace(region.getEndOffset(), 0, data); in run()
|
D | CopyCutAction.java | 173 IndexedRegion region = (IndexedRegion) xml_node; in getXmlTextFromEditor() local 174 int start = region.getStartOffset(); in getXmlTextFromEditor() 175 int end = region.getEndOffset(); in getXmlTextFromEditor()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | LayoutMetadataTest.java | 68 IndexedRegion region = (IndexedRegion) node; in getText() local 71 int length = region.getEndOffset() - region.getStartOffset(); in getText() 72 return document.get(region.getStartOffset(), length); in getText()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/ |
D | completionvalues1-expected-completion23.txt | 4 …ll be used to display a text selection anchor on the left side of a selection region. [reference] 5 …l be used to display a text selection anchor on the right side of a selection region. [reference]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
D | ObsoleteLayoutParamsFix.java | 60 IndexedRegion region = (IndexedRegion) attribute; in apply() local 61 if (region.getStartOffset() == start) { in apply()
|
D | TypographyFix.java | 66 IndexedRegion region = (IndexedRegion) child; in apply() local 72 document.replace(edit.offset + region.getStartOffset(), in apply()
|
D | EclipseLintClient.java | 255 IndexedRegion region = (IndexedRegion) node; in getXmlParser() local 256 int nodeStart = region.getStartOffset(); in getXmlParser() 261 model.getStructuredDocument(), region); in getXmlParser() 271 IndexedRegion region = (IndexedRegion) node; in getXmlParser() local 272 return region.getStartOffset(); in getXmlParser() 277 IndexedRegion region = (IndexedRegion) node; in getXmlParser() local 278 return region.getEndOffset(); in getXmlParser() 447 IndexedRegion region = l.mRegion; 448 if (region instanceof Node) { 449 Node node = (Node) region; [all …]
|
D | SetPropertyFix.java | 94 IndexedRegion region = (IndexedRegion) attr; in apply() local 95 int offset = region.getStartOffset(); in apply()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
D | AndroidXmlFormatter.java | 39 public final void format(IDocument document, IRegion region) { in format() argument 50 context.setProperty(FormattingContextProperties.CONTEXT_REGION, region); in format()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/ |
D | ExtractStringRefactoring.java | 589 IStructuredDocumentRegion region = in findSelectionInXmlFile() local 591 if (region != null && in findSelectionInXmlFile() 592 DOMRegionContext.XML_TAG_NAME.equals(region.getType())) { in findSelectionInXmlFile() 596 currAttrName = findSelectionInRegion(region, selStart); in findSelectionInXmlFile() 648 private String findSelectionInRegion(IStructuredDocumentRegion region, int selStart) { in findSelectionInRegion() argument 652 int startInRegion = selStart - region.getStartOffset(); in findSelectionInRegion() 654 int nb = region.getNumberOfRegions(); in findSelectionInRegion() 655 ITextRegionList list = region.getRegions(); in findSelectionInRegion() 663 currAttrName = region.getText(subRegion); in findSelectionInRegion() 682 currAttrValue = region.getText(subRegion); in findSelectionInRegion() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/ |
D | NewXmlFileWizard.java | 146 IRegion region = created.getSecond(); in performFinish() 153 xmlEditor.show(region.getOffset(), region.getLength(), in performFinish() 278 IRegion region = caretOffset != -1 ? new Region(caretOffset, 0) : null; in createXmlFile() local 288 return Pair.of(file, region); in createXmlFile()
|