ManifestPkgAttrDescriptor.java revision f63f5bea4d1f5c4a55790c7e85c5cadc5867e35a
1f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael/* 2f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * Copyright (C) 2009 The Android Open Source Project 3f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * 4f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * Licensed under the Eclipse Public License, Version 1.0 (the "License"); 5f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * you may not use this file except in compliance with the License. 6f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * You may obtain a copy of the License at 7f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * 8f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * http://www.eclipse.org/org/documents/epl-v10.php 9f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * 10f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * Unless required by applicable law or agreed to in writing, software 11f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * distributed under the License is distributed on an "AS IS" BASIS, 12f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * See the License for the specific language governing permissions and 14f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * limitations under the License. 15f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael */ 16f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael 17f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphaelpackage com.android.ide.eclipse.editors.manifest.descriptors; 18f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael 19f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphaelimport com.android.ide.eclipse.editors.descriptors.TextAttributeDescriptor; 20f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphaelimport com.android.ide.eclipse.editors.manifest.model.UiManifestPkgAttrNode; 21f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphaelimport com.android.ide.eclipse.editors.uimodel.UiAttributeNode; 22f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphaelimport com.android.ide.eclipse.editors.uimodel.UiElementNode; 23f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael 24f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael/** 25f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * Describes a package XML attribute. It is displayed by a {@link UiManifestPkgAttrNode}. 26f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael */ 27f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphaelpublic class ManifestPkgAttrDescriptor extends TextAttributeDescriptor { 28f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael 29f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael public ManifestPkgAttrDescriptor(String xmlLocalName, String uiName, String nsUri, 30f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael String tooltip) { 31f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael super(xmlLocalName, uiName, nsUri, tooltip); 32f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael } 33f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael 34f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael /** 35f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael * @return A new {@link UiManifestPkgAttrNode} linked to this descriptor. 36f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael */ 37f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael @Override 38f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael public UiAttributeNode createUiNode(UiElementNode uiParent) { 39f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael return new UiManifestPkgAttrNode(this, uiParent); 40f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael } 41f63f5bea4d1f5c4a55790c7e85c5cadc5867e35aRaphael} 42