/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
H A D | DocumentFix.java | 36 protected abstract void apply(IDocument document, IStructuredModel model, Node node, argument 40 public void apply(IDocument document) { argument 41 if (!(document instanceof IStructuredDocument)) { 42 AdtPlugin.log(null, "Unexpected document type: %1$s. Can't fix.", 43 document.getClass().getName()); 50 IStructuredModel model = manager.getModelForEdit((IStructuredDocument) document); 51 Node node = DomUtilities.getNode(document, start); 53 apply(document, model, node, start, end);
|
H A D | AddPrefixFix.java | 49 protected void apply(IDocument document, IStructuredModel model, Node node, int start, argument 53 document.replace(start, 0, prefix + ':');
|
H A D | ExtractStringFix.java | 60 protected void apply(IDocument document, IStructuredModel model, Node node, int start, argument
|
H A D | LinearLayoutWeightFix.java | 51 protected void apply(IDocument document, IStructuredModel model, Node node, int start, argument
|
H A D | RemoveUselessViewFix.java | 55 protected void apply(IDocument document, IStructuredModel model, Node node, int start, argument
|
H A D | SetScrollViewSizeFix.java | 50 protected void apply(IDocument document, IStructuredModel model, Node node, int start, argument
|
H A D | AddSuppressAttribute.java | 61 public Point getSelection(IDocument document) { argument 86 public void apply(IDocument document) { argument 132 Document document = node.getOwnerDocument(); 137 node = document.getDocumentElement();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactoring/changes/ |
H A D | AndroidTypeMoveChange.java | 35 * @param document the document 41 IDocument document, Map<String, String> elements, String newName, String oldName) { 42 super(androidManifest, manager, document, elements, newName, oldName); 40 AndroidTypeMoveChange(IFile androidManifest, ITextFileBufferManager manager, IDocument document, Map<String, String> elements, String newName, String oldName) argument
|
H A D | AndroidTypeRenameChange.java | 46 * @param document the document 52 IDocument document, Map<String, String> elements, String newName, String oldName) { 53 super(document); 54 this.mDocument = document; 61 this.mModel = getModel(document); 51 AndroidTypeRenameChange(IFile androidManifest, ITextFileBufferManager manager, IDocument document, Map<String, String> elements, String newName, String oldName) argument
|
/sdk/lint/libs/lint_api/src/com/android/tools/lint/client/api/ |
H A D | IDomParser.java | 45 * @return the parsed DOM document, or null if parsing fails 90 * @param document the document that was parsed and is now being disposed 92 void dispose(@NonNull XmlContext context, @NonNull Document document); argument
|
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/ |
H A D | ExtraTextDetector.java | 78 public void visitDocument(@NonNull XmlContext context, @NonNull Document document) { argument 80 visitNode(context, document);
|
H A D | StateListDetector.java | 78 public void visitDocument(@NonNull XmlContext context, @NonNull Document document) { argument 84 Element root = document.getDocumentElement();
|
H A D | Utf8Detector.java | 66 public void visitDocument(@NonNull XmlContext context, @NonNull Document document) { argument
|
H A D | WrongLocationDetector.java | 61 public void visitDocument(@NonNull XmlContext context, @NonNull Document document) { argument 62 Element root = document.getDocumentElement();
|
H A D | NamespaceDetector.java | 111 public void visitDocument(@NonNull XmlContext context, @NonNull Document document) { argument 113 Element root = document.getDocumentElement(); 170 checkElement(context, document.getDocumentElement());
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
H A D | AndroidXmlCharacterMatcher.java | 59 private IRegion findOppositeTag(IDocument document, int offset) { argument 60 if (!(document instanceof IStructuredDocument)) { 63 IStructuredDocument doc = (IStructuredDocument) document; 140 * @param doc the document 194 * @param doc the document
|
H A D | AndroidXmlAutoEditStrategy.java | 78 public void customizeDocumentCommand(IDocument document, DocumentCommand c) { argument 83 if (!(document instanceof IStructuredDocument)) { 84 // This shouldn't happen unless this strategy is used on an invalid document 87 IStructuredDocument doc = (IStructuredDocument) document; 304 * @param document the document 309 public static int findLineStart(IDocument document, int offset) throws BadLocationException { argument 310 offset = Math.max(0, Math.min(offset, document.getLength() - 1)); 311 IRegion info = document.getLineInformationOfOffset(offset); 318 * @param document th 326 findTextStart(IDocument document, int lineStart, int lineEnd) argument [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
H A D | AndroidXmlFormatter.java | 39 public final void format(IDocument document, IRegion region) { argument 52 format(document, context); 61 public void format(IDocument document, IFormattingContext context) { argument 62 context.setProperty(FormattingContextProperties.CONTEXT_MEDIUM, document); 63 formatMaster(context, document, 0, document.getLength()); 66 protected void formatMaster(IFormattingContext context, IDocument document, int offset, argument 69 final int delta= offset - document.getLineInformationOfOffset(offset).getOffset();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/ |
H A D | ExtractStringProposal.java | 50 public void apply(IDocument document) { argument 75 public Point getSelection(IDocument document) { argument
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
H A D | LayoutMetadataTest.java | 50 IDocument document = pair.getFirst(); 54 assertNull(LayoutMetadata.getProperty(document, node, "foo")); 59 assertEquals(before, getText(document, node)); 62 LayoutMetadata.setProperty(document, node, 69 assertEquals(after, getText(document, node)); 72 LayoutMetadata.setProperty(document, node, 82 assertEquals(after, getText(document, node)); 85 LayoutMetadata.setProperty(document, node, 95 assertEquals(after, getText(document, node)); 98 LayoutMetadata.setProperty(document, nod 172 getText(IDocument document, Node node) argument [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
H A D | ConvertSwitchQuickFixProcessor.java | 113 IDocument document = provider.getDocument(file); 114 if (document != null) { 116 file, document, errorStart); 187 public void apply(IDocument document) { argument 194 public Point getSelection(IDocument document) { argument
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
H A D | RefactoringAssistant.java | 271 public void apply(IDocument document) { argument 311 public Point getSelection(IDocument document) { argument
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/menu/ |
H A D | MenuEditorDelegate.java | 91 * @param xml_doc The XML document, if available, or null if none exists. 168 private void onDescriptorsChanged(Document document) { argument 169 if (document != null) { 170 getUiRootNode().loadFromXmlNode(document);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/otherxml/ |
H A D | OtherXmlEditorDelegate.java | 83 * @param xml_doc The XML document, if available, or null if none exists. 128 private void onDescriptorsChanged(Document document) { argument 129 if (document != null) { 130 getUiRootNode().loadFromXmlNode(document);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/ |
H A D | UiDocumentNode.java | 29 * Represents an XML document node that can be modified by the user interface in the XML editor. 106 * This method throws an exception if there is no underlying XML document. 116 // By design, a document node cannot be created, it is owned by the XML parser. 118 // document container, even for an empty file. 125 * This method throws an exception and does not even try to delete the XML document. 139 * Returns all elements in this document. 141 * @param document the document 142 * @return all elements in the document 144 public static List<UiElementNode> getAllElements(UiDocumentNode document) { argument [all...] |