Home
last modified time | relevance | path

Searched refs:ElementDescriptor (Results 1 – 25 of 62) sorted by relevance

123

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/values/descriptors/
DValuesDescriptors.java35 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
54 public final ElementDescriptor mResourcesElement;
64 public ElementDescriptor[] getRootElementDescriptors() { in getRootElementDescriptors()
65 return new ElementDescriptor[] { mResourcesElement }; in getRootElementDescriptors()
69 public ElementDescriptor getDescriptor() { in getDescriptor()
73 public ElementDescriptor getElementDescriptor() { in getElementDescriptor()
85 ElementDescriptor color_element = new ElementDescriptor( in ValuesDescriptors()
102 ElementDescriptor string_element = new ElementDescriptor( in ValuesDescriptors()
119 ElementDescriptor item_element = new ItemElementDescriptor( in ValuesDescriptors()
158 ElementDescriptor drawable_element = new ElementDescriptor( in ValuesDescriptors()
[all …]
DItemElementDescriptor.java20 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
28 public class ItemElementDescriptor extends ElementDescriptor {
47 ElementDescriptor[] children, boolean mandatory) { in ItemElementDescriptor()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/otherxml/descriptors/
DOtherXmlDescriptors.java29 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
68 public ElementDescriptor[] getRootElementDescriptors() { in getRootElementDescriptors()
90 public ElementDescriptor getDescriptor() { in getSearchableProvider()
95 public ElementDescriptor[] getRootElementDescriptors() { in getSearchableProvider()
104 public ElementDescriptor getDescriptor() {
109 public ElementDescriptor[] getRootElementDescriptors() {
118 public ElementDescriptor getDescriptor() {
123 public ElementDescriptor[] getRootElementDescriptors() {
148 ElementDescriptor searchable = createSearchable(searchableStyleMap, xmlns);
149 ElementDescriptor appWidget = createAppWidgetProviderInfo(appWidgetStyleMap, xmlns);
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/animator/
DAnimatorDescriptors.java24 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
38 private ElementDescriptor mDescriptor;
40 private ElementDescriptor[] mRootDescriptors;
41 private Map<String, ElementDescriptor> nameToDescriptor;
45 public ElementDescriptor getDescriptor() { in getDescriptor()
47 mDescriptor = new ElementDescriptor("", getRootElementDescriptors()); //$NON-NLS-1$ in getDescriptor()
54 public ElementDescriptor[] getRootElementDescriptors() { in getRootElementDescriptors()
58 ElementDescriptor getElementDescriptor(String rootTag) { in getElementDescriptor()
60 nameToDescriptor = new HashMap<String, ElementDescriptor>(); in getElementDescriptor()
61 for (ElementDescriptor descriptor : getRootElementDescriptors()) { in getElementDescriptor()
[all …]
DAnimDescriptors.java20 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
32 private ElementDescriptor mDescriptor;
34 private ElementDescriptor[] mRootDescriptors;
35 private Map<String, ElementDescriptor> nameToDescriptor;
39 public ElementDescriptor getDescriptor() { in getDescriptor()
41 mDescriptor = new ElementDescriptor("", getRootElementDescriptors()); //$NON-NLS-1$ in getDescriptor()
48 public ElementDescriptor[] getRootElementDescriptors() { in getRootElementDescriptors()
52 public ElementDescriptor getElementDescriptor(String mRootTag) { in getElementDescriptor()
54 nameToDescriptor = new HashMap<String, ElementDescriptor>(); in getElementDescriptor()
55 for (ElementDescriptor descriptor : getRootElementDescriptors()) { in getElementDescriptor()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/menu/descriptors/
DMenuDescriptors.java27 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
40 private ElementDescriptor mDescriptor = null;
44 public ElementDescriptor getDescriptor() { in getDescriptor()
49 public ElementDescriptor[] getRootElementDescriptors() { in getRootElementDescriptors()
84 ElementDescriptor sub_item = createElement(styleMap, in updateDescriptors()
92 ElementDescriptor sub_group = createElement(styleMap, in updateDescriptors()
97 new ElementDescriptor[] { sub_item }, // childrenElements, in updateDescriptors()
100 ElementDescriptor sub_menu = createElement(styleMap, in updateDescriptors()
105 new ElementDescriptor[] { sub_item, sub_group }, // childrenElements, in updateDescriptors()
110 ElementDescriptor top_item = createElement(styleMap, in updateDescriptors()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/drawable/
DDrawableDescriptors.java25 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
44 private ElementDescriptor mDescriptor;
46 private ElementDescriptor[] mRootDescriptors;
47 private Map<String, ElementDescriptor> nameToDescriptor;
51 public ElementDescriptor getDescriptor() { in getDescriptor()
53 mDescriptor = new ElementDescriptor("", getRootElementDescriptors()); //$NON-NLS-1$ in getDescriptor()
60 public ElementDescriptor[] getRootElementDescriptors() { in getRootElementDescriptors()
70 public ElementDescriptor getElementDescriptor(String tag) { in getElementDescriptor()
72 nameToDescriptor = new HashMap<String, ElementDescriptor>(); in getElementDescriptor()
73 for (ElementDescriptor descriptor : getRootElementDescriptors()) { in getElementDescriptor()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/
DElementDescriptor.java43 public class ElementDescriptor implements Comparable<ElementDescriptor> { class
53 private ElementDescriptor[] mChildren;
82 public ElementDescriptor(String xml_name, String ui_name, String tooltip, String sdk_url, in ElementDescriptor() method in ElementDescriptor
84 ElementDescriptor[] children, in ElementDescriptor()
92 mChildren = children != null ? children : new ElementDescriptor[]{}; in ElementDescriptor()
110 public ElementDescriptor(String xml_name, String ui_name, String tooltip, String sdk_url, in ElementDescriptor() method in ElementDescriptor
112 ElementDescriptor[] children, in ElementDescriptor()
120 mChildren = children != null ? children : new ElementDescriptor[]{}; in ElementDescriptor()
135 public ElementDescriptor(String xml_name, ElementDescriptor[] children, Mandatory mandatory) { in ElementDescriptor() method in ElementDescriptor
147 public ElementDescriptor(String xml_name, ElementDescriptor[] children) { in ElementDescriptor() method in ElementDescriptor
[all …]
DIDescriptorProvider.java21 ElementDescriptor[] getRootElementDescriptors(); in getRootElementDescriptors()
23 ElementDescriptor getDescriptor(); in getDescriptor()
DAttributeDescriptor.java43 private ElementDescriptor mParent;
74 final void setParent(ElementDescriptor parent) { in setParent()
79 public final ElementDescriptor getParent() { in getParent()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/descriptors/
DAndroidManifestDescriptors.java28 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
29 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor.Mandatory;
70 private final ElementDescriptor MANIFEST_ELEMENT;
72 private final ElementDescriptor APPLICATION_ELEMENT;
75 private final ElementDescriptor INTRUMENTATION_ELEMENT;
77 private final ElementDescriptor PERMISSION_ELEMENT;
79 private final ElementDescriptor USES_PERMISSION_ELEMENT;
81 private final ElementDescriptor USES_SDK_ELEMENT;
84 private final ElementDescriptor PERMISSION_GROUP_ELEMENT;
86 private final ElementDescriptor PERMISSION_TREE_ELEMENT;
[all …]
DManifestElementDescriptor.java20 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
31 public class ManifestElementDescriptor extends ElementDescriptor {
49 ElementDescriptor[] children, in ManifestElementDescriptor()
70 ElementDescriptor[] children, in ManifestElementDescriptor()
90 ElementDescriptor[] children) { in ManifestElementDescriptor()
101 public ManifestElementDescriptor(String xml_name, ElementDescriptor[] children) { in ManifestElementDescriptor()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/color/
DColorDescriptors.java26 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
43 private ElementDescriptor mDescriptor = new ElementDescriptor(
53 public ElementDescriptor getDescriptor() { in getDescriptor()
55 mDescriptor = new ElementDescriptor("", getRootElementDescriptors()); //$NON-NLS-1$ in getDescriptor()
62 public ElementDescriptor[] getRootElementDescriptors() { in getRootElementDescriptors()
63 return new ElementDescriptor[] { mDescriptor }; in getRootElementDescriptors()
72 ElementDescriptor selectorItem = AnimatorDescriptors.addElement(null, styleMap, in updateDescriptors()
95 mDescriptor.setChildren(new ElementDescriptor[] { selectorItem }); in updateDescriptors()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/
DUiElementPullParserTest.java23 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
58 ElementDescriptor buttonDescriptor = new ElementDescriptor("Button", "Button", "", "", in setUp()
63 new ElementDescriptor[] {}, false); in setUp()
65 ElementDescriptor textDescriptor = new ElementDescriptor("TextView", "TextView", "", "", in setUp()
70 new ElementDescriptor[] {}, false); in setUp()
72 ElementDescriptor linearDescriptor = new ElementDescriptor("LinearLayout", "Linear Layout", in setUp()
77 new ElementDescriptor[] { }, false); in setUp()
79 ElementDescriptor relativeDescriptor = new ElementDescriptor("RelativeLayout", in setUp()
84 new ElementDescriptor[] { }, false); in setUp()
86 ElementDescriptor[] a = new ElementDescriptor[] { in setUp()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/
DUiModelTreeLabelProvider.java21 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
45 ElementDescriptor desc = null; in getImage()
48 if (element instanceof ElementDescriptor) { in getImage()
49 desc = (ElementDescriptor) element; in getImage()
74 if (element instanceof ElementDescriptor) { in getText()
75 ElementDescriptor desc = (ElementDescriptor) element; in getText()
DUiActions.java21 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
22 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor.Mandatory;
78 ElementDescriptor[] descriptorFilters, in doAdd()
94 addElement(dlg.getChosenRootNode(), null, (ElementDescriptor) results[0], in doAdd()
119 ElementDescriptor descriptor, in addElement()
194 final ElementDescriptor[] descriptorFilters) { in doUp()
244 ElementDescriptor[] descriptorFilters) { in canDoUp()
270 ElementDescriptor[] descriptorFilters, in doUpInternal()
280 ElementDescriptor nodeDesc = uiNode.getDescriptor(); in doUpInternal()
324 ElementDescriptor grandDesc = in doUpInternal()
[all …]
DNewItemSelectionDialog.java21 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
65 private ElementDescriptor[] mDescriptorFilters;
87 ElementDescriptor[] descriptorFilters, in NewItemSelectionDialog()
119 } else if (selection.length == 1 && selection[0] instanceof ElementDescriptor) { in NewItemSelectionDialog()
210 objects[0] instanceof ElementDescriptor) { in setLastUsedXmlName()
211 ElementDescriptor desc = (ElementDescriptor) objects[0]; in setLastUsedXmlName()
309 ElementDescriptor initialElement = null; in setInitialSelection()
318 for (ElementDescriptor desc : getAllowedDescriptors(rootNode)) { in setInitialSelection()
332 setSelection(initialElement == null ? null : new ElementDescriptor[] { initialElement }); in setInitialSelection()
406 private ElementDescriptor[] getAllowedDescriptors(UiElementNode ui_node) { in getAllowedDescriptors()
DUiModelTreeContentProvider.java19 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
35 private ElementDescriptor[] mDescriptorFilters;
40 ElementDescriptor[] descriptorFilters) { in UiModelTreeContentProvider()
98 for (ElementDescriptor filter : mDescriptorFilters) { in getElements()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/descriptors/
DDescriptorsUtilsTest.java138 ElementDescriptor desc = new ElementDescriptor("application"); in testFormatFormText()
176 assertTrue(DescriptorsUtils.needsDefaultId(new ElementDescriptor("Button"))); in testNeedsDefaultId()
177 assertTrue(DescriptorsUtils.needsDefaultId(new ElementDescriptor("EditText"))); in testNeedsDefaultId()
178 assertTrue(DescriptorsUtils.needsDefaultId(new ElementDescriptor("TextView"))); in testNeedsDefaultId()
180 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("LinearLayout"))); in testNeedsDefaultId()
181 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("GridLayout"))); in testNeedsDefaultId()
182 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("RelativeLayout"))); in testNeedsDefaultId()
183 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("include"))); in testNeedsDefaultId()
184 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("merge"))); in testNeedsDefaultId()
185 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("fragment"))); in testNeedsDefaultId()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
DLayoutContentAssist.java34 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
83 ElementDescriptor[] children = getRootDescriptor().getChildren(); in getChoicesForElement()
84 for (ElementDescriptor e : children) { in getChoicesForElement()
95 List<ElementDescriptor> descriptors = getCustomViews(); in getChoicesForElement()
97 List<ElementDescriptor> matches = Lists.newArrayList(); in getChoicesForElement()
98 for (ElementDescriptor descriptor : descriptors) { in getChoicesForElement()
104 return matches.toArray(new ElementDescriptor[matches.size()]); in getChoicesForElement()
113 protected ElementDescriptor[] getElementChoicesForTextNode(Node parentNode) { in getElementChoicesForTextNode()
114 ElementDescriptor[] choices = super.getElementChoicesForTextNode(parentNode); in getElementChoicesForTextNode()
117 List<ElementDescriptor> descriptors = getCustomViews(); in getElementChoicesForTextNode()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/manifest/model/
DUiElementNodeTest.java20 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
21 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor.Mandatory;
41 private ElementDescriptor mManifestDesc;
42 private ElementDescriptor mAppDesc;
43 private ElementDescriptor mUsesSdkDesc;
47 mAppDesc = new ElementDescriptor("application", new ElementDescriptor[] { in setUp()
48 new ElementDescriptor("provider"), in setUp()
49 new ElementDescriptor("activity", new ElementDescriptor[] { in setUp()
50 new ElementDescriptor("intent-filter") in setUp()
54 mUsesSdkDesc = new ElementDescriptor("uses-sdk", new ElementDescriptor[] {}, in setUp()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/pages/
DOverviewPage.java22 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
135 private ElementDescriptor[] computeManifestExtraFilters() { in computeManifestExtraFilters()
144 HashSet<ElementDescriptor> excludes = new HashSet<ElementDescriptor>(); in computeManifestExtraFilters()
153 ArrayList<ElementDescriptor> descriptorFilters = new ArrayList<ElementDescriptor>(); in computeManifestExtraFilters()
154 for (ElementDescriptor child : manifest.getDescriptor().getChildren()) { in computeManifestExtraFilters()
163 return descriptorFilters.toArray(new ElementDescriptor[descriptorFilters.size()]); in computeManifestExtraFilters()
DPermissionPage.java22 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
76 ElementDescriptor[] descriptorFilters = null; in createFormContent()
78 descriptorFilters = new ElementDescriptor[] { in createFormContent()
102 new ElementDescriptor[] { in refreshUiNode()
DInstrumentationPage.java22 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
72 ElementDescriptor[] descriptorFilters = null; in createFormContent()
74 descriptorFilters = new ElementDescriptor[] { in createFormContent()
96 new ElementDescriptor[] { in refreshUiNode()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/menu/
DMenuEditorDelegate.java25 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor;
26 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor.Mandatory;
107 ElementDescriptor root_desc = getUiRootNode().getDescriptor(); in delegateXmlModelChanged()
149 ElementDescriptor desc; in delegateInitUiRootNode()
151 desc = new ElementDescriptor("temp", null /*children*/); in delegateInitUiRootNode()

123