public class ReactorViewer extends org.eclipse.ui.part.ViewPart implements org.eclipse.jface.viewers.ISelectionChangedListener, IUpdateableListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
The id for this view
|
component
Constructor and Description |
---|
ReactorViewer()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addReactorFile(ICEResource resource)
Add an ICEResource to the ReactorViewer.
|
void |
compareSelection(int reactorEditorId)
Compares the current selection in
reactorTreeViewer with an
existing Reactor Analyzer. |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Creates the widgets and controls for the ReactorViewer.
|
ResourceComponent |
getResourceComponent()
This operation retrieves the active ResourceComponent of this view or
null if the component does not exist.
|
java.lang.Object |
getSelectedElement()
Retrieve the current selection in the
reactorTreeViewer for
access by external classes. |
void |
removeSelection()
Removes all ICEResources selected in
reactorTreeViewer from the
resourceComponent . |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
This listens for selection change events in the reactorTreeViewer and
updates the actions depending on the selection type.
|
void |
setFocus()
Not used at this time.
|
void |
showSelection(int reactorEditorId)
Shows the current selection in
reactorTreeViewer in a Reactor
Analyzer. |
void |
update(IUpdateable component)
Updates the ReactorViewer (specifically, the
reactorTreeViewer )
when the ResourceComponent is updated. |
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 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 parent Composite that will contain this ReactorViewer.public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
WorkbenchPart.setFocus()
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged
in interface org.eclipse.jface.viewers.ISelectionChangedListener
event
- The SelectionChangedEvent that fired this method.ISelectionChangedListener.selectionChanged(SelectionChangedEvent)
public void update(IUpdateable component)
reactorTreeViewer
)
when the ResourceComponent is updated.update
in interface IUpdateableListener
component
- The ResourceComponent that was just updated.IUpdateableListener.update(IUpdateable)
public ResourceComponent getResourceComponent()
public void removeSelection()
reactorTreeViewer
from the
resourceComponent
.public void addReactorFile(ICEResource resource)
resource
- an ICEResource for the reactor (.h5) file to add to the
ReactorViewer.public void showSelection(int reactorEditorId)
reactorTreeViewer
in a Reactor
Analyzer.reactorEditorId
- The ID of the target Reactor Analyzer.public void compareSelection(int reactorEditorId)
reactorTreeViewer
with an
existing Reactor Analyzer.reactorEditorId
- The ID of the target Reactor Analyzer.public java.lang.Object getSelectedElement()
reactorTreeViewer
for
access by external classes.reactorTreeViewer