public class BreakpointTypeCategory extends PlatformObject implements IBreakpointTypeCategory, IWorkbenchAdapter
Clients providing breakpoint type category adapters may instantiate and subclass this class.
Constructor and Description |
---|
BreakpointTypeCategory(String name)
Constructs a type category for the given type name.
|
BreakpointTypeCategory(String name,
ImageDescriptor descriptor)
Constructs a type category for the given type name with the given
image.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
Object[] |
getChildren(Object o)
Returns the children of this object.
|
ImageDescriptor |
getImageDescriptor(Object object)
Returns an image descriptor to be used for displaying an object in the workbench.
|
String |
getLabel(Object o)
Returns the label text for this element.
|
protected String |
getName()
Returns the name of this category's breakpoint type.
|
Object |
getParent(Object o)
Returns the logical parent of the given object in its tree.
|
int |
hashCode() |
String |
toString() |
getAdapter
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAdapter
public BreakpointTypeCategory(String name)
name
- breakpoint type namepublic BreakpointTypeCategory(String name, ImageDescriptor descriptor)
name
- breakpoint type namedescriptor
- image descriptorprotected String getName()
public Object[] getChildren(Object o)
IWorkbenchAdapter
getChildren
in interface IWorkbenchAdapter
o
- The object to get the children for.public ImageDescriptor getImageDescriptor(Object object)
IWorkbenchAdapter
null
if there is no appropriate image.getImageDescriptor
in interface IWorkbenchAdapter
object
- The object to get an image descriptor for.public String getLabel(Object o)
IWorkbenchAdapter
getLabel
in interface IWorkbenchAdapter
o
- The object to get a label for.public Object getParent(Object o)
IWorkbenchAdapter
null
if there is no parent, or if this object doesn't
belong to a tree.getParent
in interface IWorkbenchAdapter
o
- The object to get the parent for.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.