| |
|
| java.lang.Object org.eclipse.ui.internal.registry.Category
Category | public class Category implements IWorkbenchAdapter,IPluginContribution,IAdaptable(Code) | | Category provides for hierarchical grouping of elements
registered in the registry. One extension normally defines
a category, and other reference it via its ID.
A category may specify its parent category in order to
achieve hierarchy.
|
Constructor Summary | |
public | Category() Creates an instance of Category as a
miscellaneous category. | public | Category(String id, String label) Creates an instance of Category with
an ID and label. | public | Category(IConfigurationElement configElement) Creates an instance of Category using the
information from the specified configuration element. |
MISC_ID | final public static String MISC_ID(Code) | | Identifier of the miscellaneous category
|
MISC_NAME | final public static String MISC_NAME(Code) | | Name of the miscellaneous category
|
Category | public Category()(Code) | | Creates an instance of Category as a
miscellaneous category.
|
Category | public Category(String id, String label)(Code) | | Creates an instance of Category with
an ID and label.
Parameters: id - the unique identifier for the category Parameters: label - the presentation label for this category |
Category | public Category(IConfigurationElement configElement) throws WorkbenchException(Code) | | Creates an instance of Category using the
information from the specified configuration element.
Parameters: configElement - the IConfigurationElement containingthe ID, label, and optional parent category path. throws: WorkbenchException - if the ID or label is null |
addElement | public void addElement(Object element)(Code) | | Add an element to this category.
Parameters: element - the element to add |
clear | public void clear()(Code) | | Clear all elements from this category.
since: 3.1 |
getElements | public ArrayList getElements()(Code) | | Return the elements contained in this category.
the elements |
getId | public String getId()(Code) | | Return the id for this category.
the id |
getImageDescriptor | public ImageDescriptor getImageDescriptor(Object object)(Code) | | |
getLabel | public String getLabel()(Code) | | Return the label for this category.
the label |
getParentPath | public String[] getParentPath()(Code) | | Return the parent path for this category.
the parent path |
getRawParentPath | public String getRawParentPath()(Code) | | Return the unparsed parent path. May be null .
the unparsed parent path or null |
getRootPath | public String getRootPath()(Code) | | Return the root path for this category.
the root path |
hasElement | public boolean hasElement(Object o)(Code) | | Return whether a given object exists in this category.
Parameters: o - the object to search for whether the object is in this category |
hasElements | public boolean hasElements()(Code) | | Return whether this category has child elements.
whether this category has child elements |
|
|
|