/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/ |
IDescriptorProvider.java | 21 ElementDescriptor[] getRootElementDescriptors(); 23 ElementDescriptor getDescriptor();
|
ElementDescriptor.java | 34 * {@link ElementDescriptor} describes the properties expected for a given XML element node. 36 * {@link ElementDescriptor} have an XML name, UI name, a tooltip, an SDK url, 43 public class ElementDescriptor implements Comparable<ElementDescriptor> { 53 private ElementDescriptor[] mChildren; 68 * Constructs a new {@link ElementDescriptor} based on its XML name, UI name, 82 public ElementDescriptor(String xml_name, String ui_name, String tooltip, String sdk_url, 84 ElementDescriptor[] children, 92 mChildren = children != null ? children : new ElementDescriptor[]{}; 96 * Constructs a new {@link ElementDescriptor} based on its XML name, UI name [all...] |
DocumentDescriptor.java | 25 * Compared to ElementDescriptor, {@link DocumentDescriptor} does not have XML name nor UI name, 33 public class DocumentDescriptor extends ElementDescriptor { 46 public DocumentDescriptor(String xml_name, ElementDescriptor[] children) {
|
IUnknownDescriptorProvider.java | 23 * on an XML DOM hierarchy, matching XML names to the {@link ElementDescriptor} names. 25 * This interface declares a provider that can provide an {@link ElementDescriptor} 31 * Returns an instance of {@link ElementDescriptor} matching the given XML Local Name. 34 * @return A new or existing {@link ElementDescriptor} or derived instance. Must not be null. 36 ElementDescriptor getDescriptor(String xmlLocalName);
|
AttributeDescriptor.java | 43 private ElementDescriptor mParent; 74 final void setParent(ElementDescriptor parent) { 79 public final ElementDescriptor getParent() {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/animator/ |
AnimatorDescriptors.java | 24 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() { 47 mDescriptor = new ElementDescriptor("", getRootElementDescriptors()); //$NON-NLS-1$ 54 public ElementDescriptor[] getRootElementDescriptors() { 58 ElementDescriptor getElementDescriptor(String rootTag) { 60 nameToDescriptor = new HashMap<String, ElementDescriptor>(); 61 for (ElementDescriptor descriptor : getRootElementDescriptors()) [all...] |
AnimDescriptors.java | 20 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() { 41 mDescriptor = new ElementDescriptor("", getRootElementDescriptors()); //$NON-NLS-1$ 48 public ElementDescriptor[] getRootElementDescriptors() { 52 public ElementDescriptor getElementDescriptor(String mRootTag) { 54 nameToDescriptor = new HashMap<String, ElementDescriptor>(); 55 for (ElementDescriptor descriptor : getRootElementDescriptors()) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/otherxml/descriptors/ |
OtherXmlDescriptors.java | 29 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 68 public ElementDescriptor[] getRootElementDescriptors() { 90 public ElementDescriptor getDescriptor() { 95 public ElementDescriptor[] getRootElementDescriptors() { 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/values/descriptors/ |
ValuesDescriptors.java | 35 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 53 /** The {@link ElementDescriptor} for the root Resources element. */ 54 public final ElementDescriptor mResourcesElement; 64 public ElementDescriptor[] getRootElementDescriptors() { 65 return new ElementDescriptor[] { mResourcesElement }; 69 public ElementDescriptor getDescriptor() { 73 public ElementDescriptor getElementDescriptor() { 85 ElementDescriptor color_element = new ElementDescriptor( 102 ElementDescriptor string_element = new ElementDescriptor [all...] |
ItemElementDescriptor.java | 20 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 25 * {@link ItemElementDescriptor} is a special version of {@link ElementDescriptor} that 28 public class ItemElementDescriptor extends ElementDescriptor { 47 ElementDescriptor[] children, boolean mandatory) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/menu/descriptors/ |
MenuDescriptors.java | 27 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 40 private ElementDescriptor mDescriptor = null; 44 public ElementDescriptor getDescriptor() { 49 public ElementDescriptor[] getRootElementDescriptors() { 84 ElementDescriptor sub_item = createElement(styleMap, 92 ElementDescriptor sub_group = createElement(styleMap, 97 new ElementDescriptor[] { sub_item }, // childrenElements, 100 ElementDescriptor sub_menu = createElement(styleMap, 105 new ElementDescriptor[] { sub_item, sub_group }, // childrenElements, 110 ElementDescriptor top_item = createElement(styleMap [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/color/ |
ColorDescriptors.java | 26 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 43 private ElementDescriptor mDescriptor = new ElementDescriptor( 53 public ElementDescriptor getDescriptor() { 55 mDescriptor = new ElementDescriptor("", getRootElementDescriptors()); //$NON-NLS-1$ 62 public ElementDescriptor[] getRootElementDescriptors() { 63 return new ElementDescriptor[] { mDescriptor }; 72 ElementDescriptor selectorItem = AnimatorDescriptors.addElement(null, styleMap, 95 mDescriptor.setChildren(new ElementDescriptor[] { selectorItem });
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/drawable/ |
DrawableDescriptors.java | 25 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() { 53 mDescriptor = new ElementDescriptor("", getRootElementDescriptors()); //$NON-NLS-1$ 60 public ElementDescriptor[] getRootElementDescriptors() { 70 public ElementDescriptor getElementDescriptor(String tag) { 72 nameToDescriptor = new HashMap<String, ElementDescriptor>(); 73 for (ElementDescriptor descriptor : getRootElementDescriptors()) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/descriptors/ |
ManifestElementDescriptor.java | 20 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 29 * This {@link ElementDescriptor} is specialized to create {@link UiManifestElementNode} UI nodes. 31 public class ManifestElementDescriptor extends ElementDescriptor { 49 ElementDescriptor[] children, 70 ElementDescriptor[] children, 90 ElementDescriptor[] children) { 101 public ManifestElementDescriptor(String xml_name, ElementDescriptor[] children) {
|
AndroidManifestDescriptors.java | 28 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 29 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor.Mandatory; 69 /** The {@link ElementDescriptor} for the root Manifest element. */ 70 private final ElementDescriptor MANIFEST_ELEMENT; 71 /** The {@link ElementDescriptor} for the root Application element. */ 72 private final ElementDescriptor APPLICATION_ELEMENT; 74 /** The {@link ElementDescriptor} for the root Instrumentation element. */ 75 private final ElementDescriptor INTRUMENTATION_ELEMENT; 76 /** The {@link ElementDescriptor} for the root Permission element. */ 77 private final ElementDescriptor PERMISSION_ELEMENT [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/ |
UiModelTreeLabelProvider.java | 21 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 31 * from {@link ElementDescriptor}. 45 ElementDescriptor desc = null; 48 if (element instanceof ElementDescriptor) { 49 desc = (ElementDescriptor) element; 74 if (element instanceof ElementDescriptor) { 75 ElementDescriptor desc = (ElementDescriptor) element;
|
UiModelTreeContentProvider.java | 19 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 35 private ElementDescriptor[] mDescriptorFilters; 40 ElementDescriptor[] descriptorFilters) { 98 for (ElementDescriptor filter : mDescriptorFilters) {
|
UiActions.java | 21 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, 94 addElement(dlg.getChosenRootNode(), null, (ElementDescriptor) results[0], 100 * Adds a new XML element based on the {@link ElementDescriptor} to the given parent 119 ElementDescriptor descriptor, 194 final ElementDescriptor[] descriptorFilters) { 244 ElementDescriptor[] descriptorFilters) { 270 ElementDescriptor[] descriptorFilters, 280 ElementDescriptor nodeDesc = uiNode.getDescriptor() [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/ |
UiElementPullParserTest.java | 23 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 58 ElementDescriptor buttonDescriptor = new ElementDescriptor("Button", "Button", "", "", 63 new ElementDescriptor[] {}, false); 65 ElementDescriptor textDescriptor = new ElementDescriptor("TextView", "TextView", "", "", 70 new ElementDescriptor[] {}, false); 72 ElementDescriptor linearDescriptor = new ElementDescriptor("LinearLayout", "Linear Layout", 77 new ElementDescriptor[] { }, false) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/descriptors/ |
DescriptorsUtilsTest.java | 138 ElementDescriptor desc = new ElementDescriptor("application"); 176 assertTrue(DescriptorsUtils.needsDefaultId(new ElementDescriptor("Button"))); 177 assertTrue(DescriptorsUtils.needsDefaultId(new ElementDescriptor("EditText"))); 178 assertTrue(DescriptorsUtils.needsDefaultId(new ElementDescriptor("TextView"))); 180 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("LinearLayout"))); 181 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("GridLayout"))); 182 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("RelativeLayout"))); 183 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("include"))); 184 assertFalse(DescriptorsUtils.needsDefaultId(new ElementDescriptor("merge"))) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/pages/ |
OverviewPage.java | 22 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 135 private ElementDescriptor[] computeManifestExtraFilters() { 144 HashSet<ElementDescriptor> excludes = new HashSet<ElementDescriptor>(); 153 ArrayList<ElementDescriptor> descriptorFilters = new ArrayList<ElementDescriptor>(); 154 for (ElementDescriptor child : manifest.getDescriptor().getChildren()) { 163 return descriptorFilters.toArray(new ElementDescriptor[descriptorFilters.size()]);
|
InstrumentationPage.java | 22 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 72 ElementDescriptor[] descriptorFilters = null; 74 descriptorFilters = new ElementDescriptor[] { 96 new ElementDescriptor[] {
|
PermissionPage.java | 22 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 76 ElementDescriptor[] descriptorFilters = null; 78 descriptorFilters = new ElementDescriptor[] { 102 new ElementDescriptor[] {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/manifest/model/ |
UiElementNodeTest.java | 20 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[] { 48 new ElementDescriptor("provider"), 49 new ElementDescriptor("activity", new ElementDescriptor[] { [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ |
LayoutContentAssist.java | 34 import com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor; 83 ElementDescriptor[] children = getRootDescriptor().getChildren(); 84 for (ElementDescriptor e : children) { 95 List<ElementDescriptor> descriptors = getCustomViews(); 97 List<ElementDescriptor> matches = Lists.newArrayList(); 98 for (ElementDescriptor descriptor : descriptors) { 104 return matches.toArray(new ElementDescriptor[matches.size()]); 113 protected ElementDescriptor[] getElementChoicesForTextNode(Node parentNode) { 114 ElementDescriptor[] choices = super.getElementChoicesForTextNode(parentNode); 117 List<ElementDescriptor> descriptors = getCustomViews() [all...] |