Searched defs:document (Results 1 - 25 of 60) sorted by relevance

123

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
H A DDocumentFix.java36 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 DAddPrefixFix.java49 protected void apply(IDocument document, IStructuredModel model, Node node, int start, argument
53 document.replace(start, 0, prefix + ':');
H A DExtractStringFix.java60 protected void apply(IDocument document, IStructuredModel model, Node node, int start, argument
H A DLinearLayoutWeightFix.java51 protected void apply(IDocument document, IStructuredModel model, Node node, int start, argument
H A DRemoveUselessViewFix.java55 protected void apply(IDocument document, IStructuredModel model, Node node, int start, argument
H A DSetScrollViewSizeFix.java50 protected void apply(IDocument document, IStructuredModel model, Node node, int start, argument
H A DAddSuppressAttribute.java61 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 DAndroidTypeMoveChange.java35 * @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 DAndroidTypeRenameChange.java46 * @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 DIDomParser.java45 * @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 DExtraTextDetector.java78 public void visitDocument(@NonNull XmlContext context, @NonNull Document document) { argument
80 visitNode(context, document);
H A DStateListDetector.java78 public void visitDocument(@NonNull XmlContext context, @NonNull Document document) { argument
84 Element root = document.getDocumentElement();
H A DUtf8Detector.java66 public void visitDocument(@NonNull XmlContext context, @NonNull Document document) { argument
H A DWrongLocationDetector.java61 public void visitDocument(@NonNull XmlContext context, @NonNull Document document) { argument
62 Element root = document.getDocumentElement();
H A DNamespaceDetector.java111 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 DAndroidXmlCharacterMatcher.java59 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 DAndroidXmlAutoEditStrategy.java78 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 DAndroidXmlFormatter.java39 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 DExtractStringProposal.java50 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 DLayoutMetadataTest.java50 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 DConvertSwitchQuickFixProcessor.java113 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 DRefactoringAssistant.java271 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 DMenuEditorDelegate.java91 * @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 DOtherXmlEditorDelegate.java83 * @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 DUiDocumentNode.java29 * 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...]

Completed in 731 milliseconds

123