public abstract class AbstractDataView extends PropertiesViewPart implements InstanceSelectionListener
Modifier and Type | Class and Description |
---|---|
class |
AbstractDataView.ToggleProvideSelectionAction
Action for toggling if an instance selection is provided by the view.
|
Constructor and Description |
---|
AbstractDataView(InstanceSelector instanceSelector,
SchemaSpaceID schemaSpace,
String controllerPreferenceKey)
Creates a table view
|
Modifier and Type | Method and Description |
---|---|
void |
createViewControl(org.eclipse.swt.widgets.Composite parent)
Since createPartControl does an important job this is used for
subclasses.
|
void |
dispose() |
InstanceSelector |
getDefaultInstanceSelector()
Get the default instance selector.
|
InstanceSelector |
getInstanceSelector() |
protected void |
onSelectionChange(Iterable<Instance> selection)
Called when the selection has changed
|
protected void |
provideCustomControls(org.eclipse.swt.widgets.Composite parent)
Add custom controls.
|
void |
selectionChanged(TypeDefinition type,
Iterable<Instance> selection)
Called when the selection changed
|
void |
setFocus() |
void |
setInstanceSelector(InstanceSelector instanceSelector)
Set the current instance selector.
|
protected void |
updateSelectionProvider()
Update the selection provider when either the instance viewer or instance
selector have changed.
|
createPartControl, getAdapter, getContributorId, getViewContext
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public AbstractDataView(InstanceSelector instanceSelector, SchemaSpaceID schemaSpace, String controllerPreferenceKey)
instanceSelector
- the feature selectorschemaSpace
- the represented schema spacecontrollerPreferenceKey
- the preference key for storing the
instance view controller configurationpublic InstanceSelector getDefaultInstanceSelector()
public void createViewControl(org.eclipse.swt.widgets.Composite parent)
PropertiesViewPart
createViewControl
in class PropertiesViewPart
parent
- the parent controlPropertiesViewPart.createViewControl(org.eclipse.swt.widgets.Composite)
protected void updateSelectionProvider()
protected void provideCustomControls(org.eclipse.swt.widgets.Composite parent)
parent
- the parent compositepublic void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
WorkbenchPart.setFocus()
public InstanceSelector getInstanceSelector()
public void setInstanceSelector(InstanceSelector instanceSelector)
instanceSelector
- the instance selector to setpublic void selectionChanged(TypeDefinition type, Iterable<Instance> selection)
InstanceSelectionListener
selectionChanged
in interface InstanceSelectionListener
type
- the definitionselection
- the selected featuresprotected void onSelectionChange(Iterable<Instance> selection)
selection
- the current selectionpublic void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
WorkbenchPart.dispose()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a