com.ibm.jdg2e.simplemodel.adapters
Class LocationWorkbenchAdapter
java.lang.Object
com.ibm.jdg2e.simplemodel.adapters.LocationWorkbenchAdapter
- All Implemented Interfaces:
- org.eclipse.ui.model.IWorkbenchAdapter
- public class LocationWorkbenchAdapter
- extends java.lang.Object
- implements org.eclipse.ui.model.IWorkbenchAdapter
Adapts ILocation to IWorkbenchAdapter, this is essential
when the object involved will be the focus of a Properties dialog. The getLabel
method is called to customize the title of the Properties dialog.
|
Constructor Summary |
LocationWorkbenchAdapter(ILocation location)
Constructor for implementation of IWorkbenchAdapter
to support display of this object in the Properties dialog. |
|
Method Summary |
java.lang.Object[] |
getChildren(java.lang.Object o)
|
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.Object object)
|
java.lang.String |
getLabel(java.lang.Object o)
Return name of location for use in Properties dialog. |
java.lang.Object |
getParent(java.lang.Object o)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationWorkbenchAdapter
public LocationWorkbenchAdapter(ILocation location)
- Constructor for implementation of
IWorkbenchAdapter
to support display of this object in the Properties dialog.
- Parameters:
location - - object of interest
getChildren
public java.lang.Object[] getChildren(java.lang.Object o)
- Specified by:
getChildren in interface org.eclipse.ui.model.IWorkbenchAdapter
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.Object object)
- Specified by:
getImageDescriptor in interface org.eclipse.ui.model.IWorkbenchAdapter
getLabel
public java.lang.String getLabel(java.lang.Object o)
- Return name of location for use in Properties dialog.
- Specified by:
getLabel in interface org.eclipse.ui.model.IWorkbenchAdapter
- See Also:
IWorkbenchAdapter.getLabel(java.lang.Object)
getParent
public java.lang.Object getParent(java.lang.Object o)
- Specified by:
getParent in interface org.eclipse.ui.model.IWorkbenchAdapter