public class MeshElementTreeView extends org.eclipse.ui.part.ViewPart implements IUpdateableListener, org.eclipse.ui.IPartListener2, org.eclipse.ui.ISelectionListener, org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Eclipse view ID
|
component
Constructor and Description |
---|
MeshElementTreeView()
The 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 and
part listener.
|
java.lang.Object |
getAdapter(java.lang.Class adapter) |
java.lang.String |
getContributorId() |
MeshComponent |
getMeshComponent()
This operation retrieves the MeshComponent that has been rendered by this
view or null if the component does not exist.
|
void |
partActivated(org.eclipse.ui.IWorkbenchPartReference partRef)
This function is called whenever a Workbench part gains focus.
|
void |
partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference partRef)
(non-Javadoc)
|
void |
partClosed(org.eclipse.ui.IWorkbenchPartReference partRef)
This function is called whenever a Workbench part is closed.
|
void |
partDeactivated(org.eclipse.ui.IWorkbenchPartReference partRef)
(non-Javadoc)
|
void |
partHidden(org.eclipse.ui.IWorkbenchPartReference partRef)
This function is called whenever a Workbench part gains focus.
|
void |
partInputChanged(org.eclipse.ui.IWorkbenchPartReference partRef)
(non-Javadoc)
|
void |
partOpened(org.eclipse.ui.IWorkbenchPartReference partRef)
(non-Javadoc)
|
void |
partVisible(org.eclipse.ui.IWorkbenchPartReference partRef)
(non-Javadoc)
|
void |
revealSelectedEdge(int id) |
void |
revealSelectedVertex(int id) |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
This operation overrides the default/abstract implementation of
ISelectionListener.selectionChanged to capture selections made in the
ICEMeshPage and highlight the corresponding element in the
MeshElementTreeView.
|
void |
setFocus()
(non-Javadoc)
|
void |
setMeshComponent(MeshComponent component)
This operation sets the MeshComponent that should be used by the
MeshElementTreeView.
|
void |
update(IUpdateable component)
Update elementTreeViewer when new elements are added to the mesh.
|
getViewSite, init, init, saveState, setInitializationData
addPartPropertyListener, addPropertyListener, dispose, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
public static final java.lang.String ID
public void setMeshComponent(MeshComponent component)
component
- The MeshComponentpublic MeshComponent getMeshComponent()
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 containing this viewWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
WorkbenchPart.setFocus()
public void update(IUpdateable component)
update
in interface IUpdateableListener
component
- IUpdateableListener.update(IUpdateable)
public void partClosed(org.eclipse.ui.IWorkbenchPartReference partRef)
partClosed
in interface org.eclipse.ui.IPartListener2
partRef
- The workbench part calling this function.IPartListener2.partClosed(IWorkbenchPartReference)
public void partActivated(org.eclipse.ui.IWorkbenchPartReference partRef)
partActivated
in interface org.eclipse.ui.IPartListener2
partRef
- The workbench part calling this function.IPartListener2.partActivated(IWorkbenchPartReference)
public void partHidden(org.eclipse.ui.IWorkbenchPartReference partRef)
partHidden
in interface org.eclipse.ui.IPartListener2
partRef
- The workbench part calling this function.IPartListener2.partHidden(IWorkbenchPartReference)
public void partBroughtToTop(org.eclipse.ui.IWorkbenchPartReference partRef)
partBroughtToTop
in interface org.eclipse.ui.IPartListener2
IPartListener2.partBroughtToTop(IWorkbenchPartReference)
public void partDeactivated(org.eclipse.ui.IWorkbenchPartReference partRef)
partDeactivated
in interface org.eclipse.ui.IPartListener2
IPartListener2.partDeactivated(IWorkbenchPartReference)
public void partOpened(org.eclipse.ui.IWorkbenchPartReference partRef)
partOpened
in interface org.eclipse.ui.IPartListener2
IPartListener2.partOpened(IWorkbenchPartReference)
public void partVisible(org.eclipse.ui.IWorkbenchPartReference partRef)
partVisible
in interface org.eclipse.ui.IPartListener2
IPartListener2.partVisible(IWorkbenchPartReference)
public void partInputChanged(org.eclipse.ui.IWorkbenchPartReference partRef)
partInputChanged
in interface org.eclipse.ui.IPartListener2
IPartListener2.partInputChanged(IWorkbenchPartReference)
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.ISelectionListener
part
- The IWorkbenchPart that called this function.selection
- The ISelection chosen in the part parameter.public void revealSelectedEdge(int id)
public void revealSelectedVertex(int id)
public java.lang.String getContributorId()
getContributorId
in interface org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.ui.part.WorkbenchPart