public class AnalysisToolComposite
extends org.eclipse.swt.widgets.Composite
IAnalysisView
. It provides three tools: an IAnalysisView selector, a
ToolBar for quick access to IAnalysisView actions, and a space for displaying
the contents of the IAnalysisView.IAnalysisWidgetRegistry
for an
IAnalysisWidgetFactory
based on the input data's class.StateBroker
.Modifier and Type | Class and Description |
---|---|
class |
AnalysisToolComposite.ViewPart
This class is a simple wrapper for an IAnalysisView, its container
Composite (a child of the
viewComposite ), and its ToolBar. |
Constructor and Description |
---|
AnalysisToolComposite(org.eclipse.swt.widgets.Composite parent,
StateBroker broker,
IAnalysisWidgetRegistry registry,
org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
The default constructor for an ATC.
|
Modifier and Type | Method and Description |
---|---|
void |
setBackground(org.eclipse.swt.graphics.Color color) |
void |
setData(java.lang.String key,
java.lang.Object value)
The idea behind overriding this function is that SWT Composites provide a
built-in map in which to store key-value pairs.
|
void |
setStateBroker(StateBroker broker)
Sets the StateBroker for the AnalysisToolComposite and all child
IAnalysisView s. |
void |
setToFirstView(DataSource dataSource)
Sets the current View to the first available view for the specified
DataSource.
|
changed, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
public AnalysisToolComposite(org.eclipse.swt.widgets.Composite parent, StateBroker broker, IAnalysisWidgetRegistry registry, org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
parent
- The Composite that will contain this ATC.broker
- The StateBroker used for inter-IAnalysisView
communications.registry
- The IAnalysisWidgetRegistry
used to get the
appropriate IAnalysisViews.selectionProvider
- The ISelectionProvider is used to feed the current selection
to the Eclipse Workbench. This is necessary for properties to
be sent to the ICE Properties View.public void setToFirstView(DataSource dataSource)
dataSource
- The DataSource whose first available View will be displayed.public void setData(java.lang.String key, java.lang.Object value)
setData
in class org.eclipse.swt.widgets.Widget
public void setStateBroker(StateBroker broker)
IAnalysisView
s.broker
- The new StateBroker.public void setBackground(org.eclipse.swt.graphics.Color color)
setBackground
in class org.eclipse.swt.widgets.Control