|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.eclipse.ui.part.WorkbenchPart
|
+--org.eclipse.ui.part.ViewPart
|
+--org.eclipse.ui.views.tasklist.TaskList
Main class for the Task List view for displaying tasks and problem annotations on resources, and for opening an editor on the resource when the user commands.
This standard view has id "org.eclipse.ui.views.TaskList".
The workbench will automatically instantiate this class when a Task List view is needed for a workbench window. This class is not intended to be instantiated or subclassed by clients.
| Field Summary |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
| Constructor Summary | |
TaskList()
Creates a new task list view. |
|
| Method Summary | |
void |
createPartControl(Composite parent)
Creates the SWT controls for this workbench part. |
void |
dispose()
Disposes of this workbench part. |
void |
edit(IMarker marker)
Activates the editor on the given marker. |
Object |
getAdapter(Class adapter)
Returns an object which is an instance of the given class associated with this object. |
IResource |
getResource()
Returns the resource for which the task list is showing tasks. |
IResource[] |
getResources()
|
ISelection |
getSelection()
API method which returns the current selection. |
void |
init(IViewSite site,
IMemento memento)
Initializes this view with the given view site. |
void |
saveState(IMemento memento)
Saves the object state within a memento. |
void |
setFocus()
Asks this part to take focus within the workbench. |
void |
setSelection(ISelection selection,
boolean reveal)
API method which sets the current selection of this viewer. |
| Methods inherited from class org.eclipse.ui.part.ViewPart |
getViewSite, init |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, firePropertyChange, getConfigurationElement, getDefaultImage, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setInitializationData, setSite, setTitle, setTitleImage, setTitleToolTip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Constructor Detail |
public TaskList()
| Method Detail |
public void createPartControl(Composite parent)
IWorkbenchPartClients should not call this method (the workbench calls this method when it needs to, which may be never).
For implementors this is a multi-step process:
IActionService.IActionService.ISelectionService
(optional).
createPartControl in interface IWorkbenchPartcreatePartControl in class WorkbenchPartparent - the parent controlpublic void dispose()
IWorkbenchPart
This is the last method called on the IWorkbenchPart. At this
point the part controls (if they were ever created) have been disposed as part
of an SWT composite. There is no guarantee that createPartControl() has been
called, so the part controls may never have been created.
Within this method a part may release any resources, fonts, images, etc. held by this part. It is also very important to deregister all listeners from the workbench.
Clients should not call this method (the workbench calls this method at appropriate times).
dispose in interface IWorkbenchPartdispose in class WorkbenchPartpublic void edit(IMarker marker)
public Object getAdapter(Class adapter)
IAdaptablenull if
no such object can be found.
getAdapter in interface IAdaptablegetAdapter in class WorkbenchPartadapter - the adapter class to look up
null if this object does not
have an adapter for the given classpublic IResource getResource()
public IResource[] getResources()
public ISelection getSelection()
IMarker)
public void init(IViewSite site,
IMemento memento)
throws PartInitException
IViewPartThis method is automatically called by the workbench shortly after part construction. It marks the start of the views's lifecycle. Clients must not call this method.
init in interface IViewPartinit in class ViewPartsite - the view sitememento - the IViewPart state or null if there is no previous saved state
PartInitException - if this view was not initialized successfullypublic void saveState(IMemento memento)
IViewPart
saveState in interface IViewPartsaveState in class ViewPartmemento - a memento to receive the object statepublic void setFocus()
IWorkbenchPartClients should not call this method (the workbench calls this method at appropriate times).
setFocus in interface IWorkbenchPartsetFocus in class WorkbenchPart
public void setSelection(ISelection selection,
boolean reveal)
selection - a structured selection of IMarker objectsreveal - true to reveal the selection,
|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||