public class PendingUpdateAdapter extends Object implements IWorkbenchAdapter, IAdaptable
Constructor and Description |
---|
PendingUpdateAdapter()
Create a new instance of the receiver.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAdapter(Class adapter)
Returns an object which is an instance of the given class
associated with this 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.
|
Object |
getParent(Object o)
Returns the logical parent of the given object in its tree.
|
protected boolean |
isRemoved()
Return whether or not this has been removed from the tree.
|
protected void |
setRemoved(boolean removedValue)
Set whether or not this has been removed from the tree.
|
String |
toString() |
public PendingUpdateAdapter()
protected boolean isRemoved()
protected void setRemoved(boolean removedValue)
removedValue
- booleanpublic Object getAdapter(Class adapter)
IAdaptable
null
if
no such object can be found.
Clients may implement this method but should generally call Adapters.adapt(Object, Class, boolean)
rather than invoking it directly.
getAdapter
in interface IAdaptable
adapter
- the adapter class to look upnull
if this object does not
have an adapter for the given classpublic 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, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.