/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/junit/ |
D | AndroidJUnitPropertyTester.java | 58 IJavaElement element; in test() local 60 element = (IJavaElement) receiver; in test() 62 element = JavaCore.create((IResource) receiver); in test() 63 if (element == null) { in test() 67 element= (IJavaElement) ((IAdaptable) receiver).getAdapter(IJavaElement.class); in test() 68 if (element == null) { in test() 71 element = JavaCore.create(resource); in test() 72 if (element == null) { in test() 78 return isJUnitTest(element); in test() 80 return canLaunchAsJUnitTest(element); in test() [all …]
|
D | AndroidJUnitLaunchShortcut.java | 39 protected ILaunchConfigurationWorkingCopy createLaunchConfiguration(IJavaElement element) in createLaunchConfiguration() argument 41 ILaunchConfigurationWorkingCopy config = super.createLaunchConfiguration(element); in createLaunchConfiguration() 43 String instrumentation = new InstrumentationRunnerValidator(element.getJavaProject()). in createLaunchConfiguration()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
D | ResourceLabelProvider.java | 65 public Image getImage(Object element) { in getImage() argument 74 public String getText(Object element) { in getText() argument 75 return getColumnText(element, 0); in getText() 89 public boolean isLabelProperty(Object element, String property) { in isLabelProperty() argument 99 public Image getColumnImage(Object element, int columnIndex) { in getColumnImage() argument 101 if (element instanceof ResourceItem) { in getColumnImage() 102 ResourceItem item = (ResourceItem)element; in getColumnImage() 112 public String getColumnText(Object element, int columnIndex) { in getColumnText() argument 115 if (element instanceof ResourceType) { in getColumnText() 116 return ((ResourceType)element).getDisplayName(); in getColumnText() [all …]
|
D | ResourceContentProvider.java | 84 public Object getParent(Object element) { in getParent() argument 90 public boolean hasChildren(Object element) { in hasChildren() argument 91 if (element instanceof ResourceType) { in hasChildren() 92 return mResources.hasResourcesOfType((ResourceType)element); in hasChildren() 93 } else if (mFullLevels && element instanceof ResourceItem) { in hasChildren() 94 return ((ResourceItem)element).hasAlternates(); in hasChildren()
|
D | ResourceExplorerView.java | 130 Object element = selection.getFirstElement(); in createPartControl() 133 if (element instanceof ResourceFile) { in createPartControl() 135 IAbstractFile iAbstractFile = ((ResourceFile)element).getFile(); in createPartControl() 142 } else if (element instanceof ResourceItem) { in createPartControl() 145 ResourceItem item = (ResourceItem)element; in createPartControl() 206 Object element = it.next(); in selectionChanged() local 211 if (element instanceof IResource) { in selectionChanged() 212 project = ((IResource) element).getProject(); in selectionChanged() 213 } else if (element instanceof IJavaElement) { in selectionChanged() 215 IJavaElement javaElement = (IJavaElement)element; in selectionChanged() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/ |
D | UiModelTreeLabelProvider.java | 44 public Image getImage(Object element) { in getImage() argument 48 if (element instanceof ElementDescriptor) { in getImage() 49 desc = (ElementDescriptor) element; in getImage() 50 } else if (element instanceof UiElementNode) { in getImage() 51 node = (UiElementNode) element; in getImage() 73 public String getText(Object element) { in getText() argument 74 if (element instanceof ElementDescriptor) { in getText() 75 ElementDescriptor desc = (ElementDescriptor) element; in getText() 77 } else if (element instanceof UiElementNode) { in getText() 78 UiElementNode node = (UiElementNode) element; in getText() [all …]
|
D | UiModelTreeContentProvider.java | 61 public Object getParent(Object element) { in getParent() argument 62 if (element instanceof UiElementNode) { in getParent() 63 UiElementNode node = (UiElementNode) element; in getParent() 72 public boolean hasChildren(Object element) { in hasChildren() argument 73 if (element instanceof UiElementNode) { in hasChildren() 74 UiElementNode node = (UiElementNode) element; in hasChildren()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/editors/ |
D | StateLabelProvider.java | 54 private String getValue(IGLProperty element) { in getValue() argument 55 return element.getStringValue(); in getValue() 58 private String getName(IGLProperty element) { in getName() argument 59 IGLProperty parent = element.getParent(); in getName() 63 int index = ((GLListProperty) parent).indexOf(element); in getName() 64 if (element.getType() == GLStateType.GL_STATE_ES1) { in getName() 66 } else if (element.getType() == GLStateType.GL_STATE_ES2) { in getName() 74 int index = ((GLSparseArrayProperty) parent).keyFor(element); in getName() 78 return element.getType().getDescription(); in getName() 83 Object element = cell.getElement(); in update() local [all …]
|
D | StateContentProvider.java | 59 public Object getParent(Object element) { in getParent() argument 60 if (element instanceof IGLProperty) { in getParent() 61 return ((IGLProperty) element).getParent(); in getParent() 68 public boolean hasChildren(Object element) { in hasChildren() argument 69 if (element instanceof IGLProperty) { in hasChildren() 70 return ((IGLProperty) element).isComposite(); in hasChildren()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/ |
D | AttributeDescriptorLabelProvider.java | 39 public Image getImage(Object element) { in getImage() argument 40 if (element instanceof UiAbstractTextAttributeNode) { in getImage() 41 UiAbstractTextAttributeNode node = (UiAbstractTextAttributeNode) element; in getImage() 55 public String getText(Object element) { in getText() argument 56 if (element instanceof UiAbstractTextAttributeNode) { in getText() 57 return ((UiAbstractTextAttributeNode)element).getCurrentValue(); in getText() 76 public boolean isLabelProperty(Object element, String property) { in isLabelProperty() argument
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
D | ConfigurationDescription.java | 171 @NonNull Element element, in fromXml() argument 175 if (!TAG_PREVIEW.equals(element.getTagName())) { in fromXml() 179 String displayName = element.getAttribute(ATTR_NAME); in fromXml() 184 String config = element.getAttribute(ATTR_CONFIG); in fromXml() 188 String theme = element.getAttribute(ATTR_THEME); in fromXml() 193 String targetId = element.getAttribute(ATTR_TARGET); in fromXml() 199 String localeString = element.getAttribute(ATTR_LOCALE); in fromXml() 218 String activity = element.getAttribute(ATTR_ACTIVITY); in fromXml() 223 String deviceString = element.getAttribute(ATTR_DEVICE); in fromXml() 228 String stateName = element.getAttribute(ATTR_STATE); in fromXml() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
D | OutlineLabelProvider.java | 44 public Image getImage(Object element) { in getImage() argument 45 if (element instanceof Element) { in getImage() 46 Element e = (Element) element; in getImage() 59 return super.getImage(element); in getImage() 63 public String getText(Object element) { in getText() argument 64 String text = super.getText(element); in getText() 65 if (element instanceof Element) { in getText() 66 Element e = (Element) element; in getText()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/ |
D | UiTextValueNode.java | 87 Node element = parent.prepareCommit(); in commit() local 88 if (element != null) { in commit() 94 for (Node xml_child = element.getFirstChild(); in commit() 106 Document doc = element.getOwnerDocument(); in commit() 109 element.appendChild(text); in commit()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | ChangeViewRefactoring.java | 170 for (Element element : getElements()) { in computeChanges() 171 IndexedRegion region = getRegion(element); in computeChanges() 173 String oldName = element.getNodeName(); in computeChanges() 176 if (element instanceof ElementImpl && ((ElementImpl) element).isEmptyTag()) { in computeChanges() 192 String oldId = getId(element); in computeChanges() 193 String newId = ensureIdMatchesType(element, mTypeFqcn, rootEdit); in computeChanges() 200 IndexedRegion range = getRegion(element); in computeChanges() 216 removeUndefinedAttrs(rootEdit, element); in computeChanges() 223 private void removeUndefinedAttrs(MultiTextEdit rootEdit, Element element) { in removeUndefinedAttrs() argument 235 List<Attr> attributes = findAttributes(element); in removeUndefinedAttrs() [all …]
|
D | GridLayoutConverter.java | 311 for (Element element : delete) { in deleteRemovedElements() 312 mRefactoring.removeElementTags(mRootEdit, element, delete, in deleteRemovedElements() 338 Element element = view.getElement(); in assignCellAttributes() local 339 if (element == mLayout) { in assignCellAttributes() 347 mRefactoring.setAttribute(mRootEdit, element, ANDROID_URI, in assignCellAttributes() 355 mRefactoring.setAttribute(mRootEdit, element, ANDROID_URI, in assignCellAttributes() 365 mRefactoring.setAttribute(mRootEdit, element, ANDROID_URI, in assignCellAttributes() 369 mRefactoring.setAttribute(mRootEdit, element, ANDROID_URI, in assignCellAttributes() 376 Attr width = element.getAttributeNodeNS(ANDROID_URI, ATTR_LAYOUT_WIDTH); in assignCellAttributes() 380 Attr height = element.getAttributeNodeNS(ANDROID_URI, ATTR_LAYOUT_HEIGHT); in assignCellAttributes() [all …]
|
D | VisualRefactoring.java | 168 for (Element element : elements) { in VisualRefactoring() 169 if (element instanceof IndexedRegion) { in VisualRefactoring() 170 IndexedRegion region = (IndexedRegion) element; in VisualRefactoring() 680 Element element = (Element) xmlNode; in initElements() local 681 nodes.add(element); in initElements() 682 IndexedRegion region = getRegion(element); in initElements() 854 protected String ensureIdMatchesType(Element element, String newType, MultiTextEdit rootEdit) { in ensureIdMatchesType() argument 855 String oldType = element.getTagName(); in ensureIdMatchesType() 860 String id = getId(element); in ensureIdMatchesType() 864 return ensureHasId(rootEdit, element, newTypeBase); in ensureIdMatchesType() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/actions/ |
D | ExportAction.java | 53 Object element = selection.getFirstElement(); in run() local 57 if (element instanceof IProject) { in run() 58 project = (IProject) element; in run() 59 } else if (element instanceof IAdaptable) { in run() 60 project = (IProject) ((IAdaptable) element).getAdapter(IProject.class); in run()
|
D | ExportWizardAction.java | 55 Object element = selection.getFirstElement(); in run() local 59 if (element instanceof IProject) { in run() 60 project = (IProject) element; in run() 61 } else if (element instanceof IAdaptable) { in run() 62 project = (IProject) ((IAdaptable) element).getAdapter(IProject.class); in run()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/ |
D | WorkingSetHelper.java | 89 Object element= elements.get(0); in getSelectedWorkingSet() local 90 TreePath[] paths= treeSelection.getPathsFor(element); in getSelectedWorkingSet() 111 Object element= iterator.next(); in getSelectedWorkingSet() local 112 if (element instanceof IWorkingSet && isValidWorkingSet((IWorkingSet) element)) { in getSelectedWorkingSet() 113 result.add(element); in getSelectedWorkingSet()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/ |
D | XmlProperty.java | 150 public Image getImage(Object element) { in getAdapter() 155 public String getText(Object element) { in getAdapter() 156 return ((IContentProposal) element).getLabel(); in getAdapter() 167 Element element = (Element) mNode.getXmlNode(); 168 if (element == null) { 174 return element.hasAttributeNS(uri, name); 176 return element.hasAttribute(name); 186 Element element = (Element) mNode.getXmlNode(); 187 if (element == null) { 194 attr = element.getAttributeNodeNS(uri, name); [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | LayoutMetadata.java | 151 Element element = (Element) node; in getProperty() local 152 String value = element.getAttributeNS(TOOLS_URI, name); in getProperty() 181 final Element element = (Element) node; in setProperty() local 183 AdtUtils.setToolsAttribute(editor, element, undoLabel, name, value, in setProperty() 206 if (setPropertyInEditor(undoLabel, variation, element, name, in setProperty() 215 setPropertyInFile(undoLabel, variation, element, name, value); in setProperty() 246 Element element = DomUtilities.findCorresponding(equivalentElement, doc); in setPropertyInEditor() local 247 if (element != null) { in setPropertyInEditor() 248 AdtUtils.setToolsAttribute(editor, element, undoLabel, name, in setPropertyInEditor() 267 @NonNull final Element element, in setPropertyInFile() argument [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
D | SetPropertyFix.java | 54 protected String getProposal(Element element) { in getProposal() argument 73 Element element = (Element) node; in apply() local 74 String proposal = getProposal(element); in apply() 85 element.setAttribute(attribute, proposal); in apply() 89 attr = element.getAttributeNodeNS(ANDROID_URI, localAttribute); in apply() 91 attr = element.getAttributeNode(localAttribute); in apply()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/menu/descriptors/ |
D | MenuDescriptors.java | 143 ElementDescriptor element = new ElementDescriptor(xmlName, uiName, null, sdkUrl, in createElement() local 146 return updateElement(element, styleMap, in createElement() 155 private ElementDescriptor updateElement(ElementDescriptor element, in updateElement() argument 169 element.setTooltip(style.getJavaDoc()); in updateElement() 176 element.setAttributes(descs.toArray(new AttributeDescriptor[descs.size()])); in updateElement() 177 return element; in updateElement()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
D | AndroidTypeMoveParticipant.java | 108 protected boolean initialize(Object element) { in initialize() argument 109 if (element instanceof IType) { in initialize() 110 IType type = (IType) element; in initialize() 274 @NonNull Element element, in addLayoutReplacements() argument 276 String tag = element.getTagName(); in addLayoutReplacements() 278 int start = RefactoringUtil.getTagNameRangeStart(element, document); in addLayoutReplacements() 284 Attr classNode = element.getAttributeNode(ATTR_CLASS); in addLayoutReplacements() 293 Attr classNode = element.getAttributeNode(ATTR_CLASS); in addLayoutReplacements() 295 classNode = element.getAttributeNodeNS(ANDROID_URI, ATTR_NAME); in addLayoutReplacements() 304 } else if (element.hasAttributeNS(TOOLS_URI, ATTR_CONTEXT)) { in addLayoutReplacements() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | RefactoringTest.java | 98 Element element = findElementById(root, id); in getElements() local 99 assertNotNull(element); in getElements() 100 selectedElements.add(element); in getElements() 197 protected UiViewElementNode createModel(UiViewElementNode parent, Element element) { in createModel() argument 198 List<Element> children = DomUtilities.getChildren(element); in createModel() 199 String fqcn = ANDROID_WIDGET_PREFIX + element.getTagName(); in createModel() 202 node.setXmlNode(element); in createModel() 270 Element element = null; in setupTestContext() local 278 element = domDocument.getDocumentElement(); in setupTestContext() 289 assertNotNull(element); in setupTestContext() [all …]
|