public class ICEResourceView extends PlayableViewPart implements IUpdateableListener, org.eclipse.ui.IPartListener2, org.eclipse.jface.viewers.IDoubleClickListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
component
Constructor and Description |
---|
ICEResourceView()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
This operation overrides the ViewPart.createPartControl method to create
and draw the TreeViewer before registering it as a selection provider.
|
void |
doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
This method listens for a double click event on a resource.
|
ResourceComponent |
getResourceComponent()
This operation retrieves the ResourceComponent that has been rendered by
the ICEResourceView or null if the component does not exist.
|
ICEResource |
getResourceFromSelection(org.eclipse.jface.viewers.ISelection selection)
Attempts to determine the
ICEResource from the selection. |
void |
partActivated(org.eclipse.ui.IWorkbenchPartReference partRef)
This function is called whenever a Workbench part gains focus.
|
void |
partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference partRef) |
void |
partClosed(org.eclipse.ui.IWorkbenchPartReference partRef)
This function is called whenever a Workbench part is closed.
|
void |
partDeactivated(org.eclipse.ui.IWorkbenchPartReference partRef) |
void |
partHidden(org.eclipse.ui.IWorkbenchPartReference partRef) |
void |
partInputChanged(org.eclipse.ui.IWorkbenchPartReference partRef) |
void |
partOpened(org.eclipse.ui.IWorkbenchPartReference partRef) |
void |
partVisible(org.eclipse.ui.IWorkbenchPartReference partRef) |
void |
setFocus() |
void |
setToNextResource()
Set the resourceTreeViewer selection to the next item (file or image) in
the currently displayed resource list.
|
void |
setToPreviousResource()
Set the resourceTreeViewer selection to the previous item (file or image)
in the currently displayed resource list.
|
void |
update(IUpdateable component)
Update resourceTreeViewer when a new resource becomes available.
|
isPlayable
getViewSite, init, init, saveState, setInitializationData
addPartPropertyListener, addPropertyListener, dispose, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String ID
public ResourceComponent getResourceComponent()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
parent
- The Composite used to create the TreeViewer.public void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
resourcePage
.doubleClick
in interface org.eclipse.jface.viewers.IDoubleClickListener
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public void update(IUpdateable component)
update
in interface IUpdateableListener
component
- The component that was updated in some way.IUpdateableListener.update(IUpdateable)
public void partActivated(org.eclipse.ui.IWorkbenchPartReference partRef)
partActivated
in interface org.eclipse.ui.IPartListener2
public void partClosed(org.eclipse.ui.IWorkbenchPartReference partRef)
editor
is closed, then we need to clear the view's
contents.partClosed
in interface org.eclipse.ui.IPartListener2
public void partHidden(org.eclipse.ui.IWorkbenchPartReference partRef)
partHidden
in interface org.eclipse.ui.IPartListener2
public void partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference partRef)
partBroughtToTop
in interface org.eclipse.ui.IPartListener2
public void partDeactivated(org.eclipse.ui.IWorkbenchPartReference partRef)
partDeactivated
in interface org.eclipse.ui.IPartListener2
public void partOpened(org.eclipse.ui.IWorkbenchPartReference partRef)
partOpened
in interface org.eclipse.ui.IPartListener2
public void partVisible(org.eclipse.ui.IWorkbenchPartReference partRef)
partVisible
in interface org.eclipse.ui.IPartListener2
public void partInputChanged(org.eclipse.ui.IWorkbenchPartReference partRef)
partInputChanged
in interface org.eclipse.ui.IPartListener2
public ICEResource getResourceFromSelection(org.eclipse.jface.viewers.ISelection selection)
ICEResource
from the selection. The
selection is assumed to be from this view, and so its selection structure
applies.selection
- The selection to convert.public void setToNextResource()
setToNextResource
in class PlayableViewPart
PlayableViewPart.setToNextResource()
public void setToPreviousResource()
setToPreviousResource
in class PlayableViewPart
PlayableViewPart.setToPreviousResource()