Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 25 of 50) sorted by relevance

12

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DPaletteMetadataDescriptor.java38 public PaletteMetadataDescriptor(ViewElementDescriptor descriptor, String displayName, in PaletteMetadataDescriptor() argument
40 super(descriptor.getXmlName(), in PaletteMetadataDescriptor()
42 descriptor.getFullClassName(), in PaletteMetadataDescriptor()
43 descriptor.getTooltip(), in PaletteMetadataDescriptor()
44 descriptor.getSdkUrl(), in PaletteMetadataDescriptor()
45 descriptor.getAttributes(), in PaletteMetadataDescriptor()
46 descriptor.getLayoutAttributes(), in PaletteMetadataDescriptor()
47 descriptor.getChildren(), descriptor.getMandatory() == Mandatory.MANDATORY); in PaletteMetadataDescriptor()
50 setSuperClass(descriptor.getSuperClassDesc()); in PaletteMetadataDescriptor()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/animator/
DAnimDescriptors.java55 for (ElementDescriptor descriptor : getRootElementDescriptors()) { in getElementDescriptor()
56 nameToDescriptor.put(descriptor.getXmlName(), descriptor); in getElementDescriptor() local
60 ElementDescriptor descriptor = nameToDescriptor.get(mRootTag); in getElementDescriptor() local
61 if (descriptor == null) { in getElementDescriptor()
62 descriptor = getDescriptor(); in getElementDescriptor()
64 return descriptor; in getElementDescriptor()
DAnimationEditorDelegate.java102 ElementDescriptor descriptor; in delegateXmlModelChanged() local
104 descriptor = data.getAnimDescriptors().getElementDescriptor(mRootTag); in delegateXmlModelChanged()
106 descriptor = data.getAnimatorDescriptors().getElementDescriptor(mRootTag); in delegateXmlModelChanged()
115 setUiRootNode(descriptor.createUiNode()); in delegateXmlModelChanged()
132 ElementDescriptor descriptor; in delegateInitUiRootNode() local
136 descriptor = new DocumentDescriptor("temp", null /*children*/); in delegateInitUiRootNode()
139 descriptor = data.getAnimDescriptors().getElementDescriptor(mRootTag); in delegateInitUiRootNode()
141 descriptor = data.getAnimatorDescriptors().getElementDescriptor(mRootTag); in delegateInitUiRootNode()
145 setUiRootNode(descriptor.createUiNode()); in delegateInitUiRootNode()
DAnimatorDescriptors.java61 for (ElementDescriptor descriptor : getRootElementDescriptors()) { in getElementDescriptor()
62 nameToDescriptor.put(descriptor.getXmlName(), descriptor); in getElementDescriptor() local
66 ElementDescriptor descriptor = nameToDescriptor.get(rootTag); in getElementDescriptor() local
67 if (descriptor == null) { in getElementDescriptor()
68 descriptor = getDescriptor(); in getElementDescriptor()
70 return descriptor; in getElementDescriptor()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/
DExtractStringContribution.java47 public Map retrieveArgumentMap(RefactoringDescriptor descriptor) { in retrieveArgumentMap() argument
48 if (descriptor instanceof ExtractStringDescriptor) { in retrieveArgumentMap()
49 return ((ExtractStringDescriptor) descriptor).getArguments(); in retrieveArgumentMap()
51 return super.retrieveArgumentMap(descriptor); in retrieveArgumentMap()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DWrapInContribution.java34 public Map retrieveArgumentMap(RefactoringDescriptor descriptor) { in retrieveArgumentMap() argument
35 if (descriptor instanceof WrapInRefactoring.Descriptor) { in retrieveArgumentMap()
36 return ((WrapInRefactoring.Descriptor) descriptor).getArguments(); in retrieveArgumentMap()
38 return super.retrieveArgumentMap(descriptor); in retrieveArgumentMap()
DUnwrapContribution.java34 public Map retrieveArgumentMap(RefactoringDescriptor descriptor) { in retrieveArgumentMap() argument
35 if (descriptor instanceof UnwrapRefactoring.Descriptor) { in retrieveArgumentMap()
36 return ((UnwrapRefactoring.Descriptor) descriptor).getArguments(); in retrieveArgumentMap()
38 return super.retrieveArgumentMap(descriptor); in retrieveArgumentMap()
DExtractIncludeContribution.java34 public Map retrieveArgumentMap(RefactoringDescriptor descriptor) { in retrieveArgumentMap() argument
35 if (descriptor instanceof ExtractIncludeRefactoring.Descriptor) { in retrieveArgumentMap()
36 return ((ExtractIncludeRefactoring.Descriptor) descriptor).getArguments(); in retrieveArgumentMap()
38 return super.retrieveArgumentMap(descriptor); in retrieveArgumentMap()
DChangeLayoutContribution.java34 public Map retrieveArgumentMap(RefactoringDescriptor descriptor) { in retrieveArgumentMap() argument
35 if (descriptor instanceof ChangeLayoutRefactoring.Descriptor) { in retrieveArgumentMap()
36 return ((ChangeLayoutRefactoring.Descriptor) descriptor).getArguments(); in retrieveArgumentMap()
38 return super.retrieveArgumentMap(descriptor); in retrieveArgumentMap()
DChangeViewContribution.java34 public Map retrieveArgumentMap(RefactoringDescriptor descriptor) { in retrieveArgumentMap() argument
35 if (descriptor instanceof ChangeViewRefactoring.Descriptor) { in retrieveArgumentMap()
36 return ((ChangeViewRefactoring.Descriptor) descriptor).getArguments(); in retrieveArgumentMap()
38 return super.retrieveArgumentMap(descriptor); in retrieveArgumentMap()
DExtractStyleContribution.java34 public Map retrieveArgumentMap(RefactoringDescriptor descriptor) { in retrieveArgumentMap() argument
35 if (descriptor instanceof ExtractStyleRefactoring.Descriptor) { in retrieveArgumentMap()
36 return ((ExtractStyleRefactoring.Descriptor) descriptor).getArguments(); in retrieveArgumentMap()
38 return super.retrieveArgumentMap(descriptor); in retrieveArgumentMap()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/drawable/
DDrawableEditorDelegate.java98 ElementDescriptor descriptor = in delegateXmlModelChanged() local
107 setUiRootNode(descriptor.createUiNode()); in delegateXmlModelChanged()
124 ElementDescriptor descriptor; in delegateInitUiRootNode() local
128 descriptor = new DocumentDescriptor("temp", null /*children*/); in delegateInitUiRootNode()
130 descriptor = data.getDrawableDescriptors().getElementDescriptor(mRootTag); in delegateInitUiRootNode()
133 setUiRootNode(descriptor.createUiNode()); in delegateInitUiRootNode()
DDrawableDescriptors.java73 for (ElementDescriptor descriptor : getRootElementDescriptors()) { in getElementDescriptor()
74 nameToDescriptor.put(descriptor.getXmlName(), descriptor); in getElementDescriptor() local
78 ElementDescriptor descriptor = nameToDescriptor.get(tag); in getElementDescriptor() local
79 if (descriptor == null) { in getElementDescriptor()
80 descriptor = getDescriptor(); in getElementDescriptor()
82 return descriptor; in getElementDescriptor()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/
DUiListAttributeNode.java134 AttributeDescriptor descriptor = getDescriptor(); in getPossibleValues() local
137 String attr_name = descriptor.getXmlLocalName(); in getPossibleValues()
142 if (SdkConstants.NS_RESOURCES.equals(descriptor.getNamespaceUri())) { in getPossibleValues()
144 } else if (SdkConstants.XMLNS_URI.equals(descriptor.getNamespaceUri())) { in getPossibleValues()
151 if (descriptor instanceof ListAttributeDescriptor && in getPossibleValues()
152 ((ListAttributeDescriptor) descriptor).getValues() != null) { in getPossibleValues()
154 values = ((ListAttributeDescriptor) descriptor).getValues(); in getPossibleValues()
DUiResourceAttributeNode.java236 @Nullable AttributeDescriptor descriptor, in computeResourceStringMatches() argument
252 String[] projectMatches = computeResourceStringMatches(descriptor, prefix, in computeResourceStringMatches()
267 projectMatches = computeResourceStringMatches(descriptor, prefix, in computeResourceStringMatches()
284 return computeResourceStringMatches(descriptor, prefix, repository, true); in computeResourceStringMatches()
417 public static void sortAttributeChoices(AttributeDescriptor descriptor, in sortAttributeChoices() argument
419 final IAttributeInfo attributeInfo = descriptor.getAttributeInfo(); in sortAttributeChoices()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/color/
DColorEditorDelegate.java92 ElementDescriptor descriptor; in delegateInitUiRootNode() local
95 descriptor = new ColorDescriptors().getDescriptor(); in delegateInitUiRootNode()
97 descriptor = data.getColorDescriptors().getDescriptor(); in delegateInitUiRootNode()
99 setUiRootNode(descriptor.createUiNode()); in delegateInitUiRootNode()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DEnumXmlPropertyEditor.java50 AttributeDescriptor descriptor = xmlProperty.getDescriptor(); in getItems() local
51 assert descriptor instanceof ListAttributeDescriptor; in getItems()
52 ListAttributeDescriptor list = (ListAttributeDescriptor) descriptor; in getItems()
DPropertyFactory.java184 for (final AttributeDescriptor descriptor : attributeDescriptors) { in getProperties()
188 assert !(descriptor instanceof SeparatorAttributeDescriptor); // No longer inserted in getProperties()
189 if (descriptor instanceof XmlnsAttributeDescriptor) { in getProperties()
194 IAttributeInfo info = descriptor.getAttributeInfo(); in getProperties()
211 XmlProperty property = new XmlProperty(editor, this, node, descriptor); in getProperties()
218 String name = descriptor.getXmlLocalName(); in getProperties()
287 AttributeDescriptor descriptor = property.getDescriptor(); in sortByOrigin() local
288 if (descriptor.isDeprecated()) { in sortByOrigin()
296 String firstName = descriptor.getXmlLocalName(); in sortByOrigin()
332 IAttributeInfo attributeInfo = descriptor.getAttributeInfo(); in sortByOrigin()
[all …]
DValueCompleter.java64 AttributeDescriptor descriptor = getDescriptor(); in getProposals() local
65 IAttributeInfo info = descriptor.getAttributeInfo(); in getProposals()
100 if (descriptor.getXmlLocalName().equals(ATTR_TEXT_SIZE)) { in getProposals()
116 descriptor, contents.substring(0, position)); in getProposals()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/descriptors/
DCustomViewDescriptorService.java122 ViewElementDescriptor descriptor); in updatedClassInfo() argument
165 ViewElementDescriptor descriptor = map.get(fqcn); in getDescriptor() local
166 if (descriptor != null) { in getDescriptor()
167 return descriptor; in getDescriptor()
212 ViewElementDescriptor descriptor = new CustomViewDescriptor(name, fqcn, in getDescriptor() local
217 descriptor.setSuperClass(parentDescriptor); in getDescriptor()
226 map.put(fqcn, descriptor); in getDescriptor()
231 return descriptor; in getDescriptor()
471 ViewElementDescriptor descriptor = new CustomViewDescriptor(name, fqcn, in createViewDescriptor() local
475 descriptor.setSuperClass(parentDescriptor); in createViewDescriptor()
[all …]
DLayoutDescriptors.java348 for (AttributeDescriptor descriptor : viewAttributes) { in insertInclude()
349 attributes.add(descriptor); in insertInclude()
396 final ViewElementDescriptor descriptor; in createFragment() local
413 descriptor = new ViewElementDescriptor( in createFragment()
431 descriptor.setAttributes(descs.toArray(new AttributeDescriptor[descs.size()])); in createFragment()
436 descriptor = new ViewElementDescriptor(xmlName, in createFragment()
461 return descriptor; in createFragment()
580 for (ViewElementDescriptor descriptor : mLayoutDescriptors) { in findDescriptorByTag()
581 if (tag.equals(descriptor.getXmlLocalName())) { in findDescriptorByTag()
582 return descriptor; in findDescriptorByTag()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
DLayoutContentAssist.java98 for (ElementDescriptor descriptor : descriptors) { in getChoicesForElement()
99 if (descriptor.getXmlLocalName().startsWith(parent)) { in getChoicesForElement()
100 matches.add(descriptor); in getChoicesForElement()
142 ViewElementDescriptor descriptor = customViews.getDescriptor(project, fqcn); in getCustomViews() local
143 if (descriptor != null) { in getCustomViews()
144 descriptors.add(descriptor); in getCustomViews()
DWidgetPullParser.java44 public WidgetPullParser(ViewElementDescriptor descriptor) { in WidgetPullParser() argument
45 mDescriptor = descriptor; in WidgetPullParser()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DValueCompleterTest.java134 TestValueCompleter(AttributeDescriptor descriptor) { in TestValueCompleter() argument
135 mDescriptor = descriptor; in TestValueCompleter()
136 assert descriptor.getAttributeInfo() != null; in TestValueCompleter()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/
DDescriptorsUtils.java703 ElementDescriptor descriptor = node.getDescriptor();
705 String name = descriptor.getXmlLocalName();
714 boolean fill = descriptor.hasChildren() &&
741 if (descriptor.definesAttribute(ANDROID_URI, ATTR_TEXT)
743 && !descriptor.getXmlLocalName().equals(EDIT_TEXT)) {
744 String type = getBasename(descriptor.getUiName());
781 public static boolean needsDefaultId(ElementDescriptor descriptor) {
783 String tag = descriptor.getXmlLocalName();
928 public static boolean canInsertChildren(ElementDescriptor descriptor, Object viewObject) { in canInsertChildren() argument
929 if (descriptor.hasChildren()) { in canInsertChildren()
[all …]

12