public class ReactorEditorRegistry extends java.lang.Object implements IReactorEditorRegistry
IReactorEditorRegistry
so that classes in the
bundle can access the currently-available Reactor Editors.ReactorFormEditor
s are
registered with this registry when constructed.Constructor and Description |
---|
ReactorEditorRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addReactorEditor(ReactorFormEditor editor,
int id)
Updates
editors with the new Reactor Editor. |
static IAnalysisWidgetRegistry |
getAnalysisWidgetRegistry()
Gets the current
IAnalysisWidgetRegistry that is used to get
IAnalysisWidgetFactories for different component types |
static java.util.List<java.lang.Integer> |
getEditorIds()
Gets a List of IDs for all currently available Reactor Editors.
|
void |
removeReactorEditor(int id)
Removes the
ReactorFormEditor associated with the ID from
editors . |
static void |
setAnalysisWidgetRegistry(IAnalysisWidgetRegistry registry)
Sets
widgetRegistry if the provided value is not null. |
static void |
setInput(int id,
org.eclipse.jface.viewers.ITreeSelection selection,
DataSource dataSource)
Sets the input for a particular Reactor Editor based on an
ITreeSelection from the ReactorViewer . |
static void |
unsetAnalysisWidgetRegistry(IAnalysisWidgetRegistry registry)
Unsets
widgetRegistry . |
public void addReactorEditor(ReactorFormEditor editor, int id)
editors
with the new Reactor Editor.addReactorEditor
in interface IReactorEditorRegistry
editor
- The ReactorFormEditor that has been created.id
- The ID of the editor. This should be the same as its
associated Item or Form.public void removeReactorEditor(int id)
ReactorFormEditor
associated with the ID from
editors
.removeReactorEditor
in interface IReactorEditorRegistry
id
- The ID of the editor. This should be the same as its
associated Item or Form.public static java.util.List<java.lang.Integer> getEditorIds()
public static void setInput(int id, org.eclipse.jface.viewers.ITreeSelection selection, DataSource dataSource)
ITreeSelection
from the ReactorViewer
.id
- The ID of the editor.selection
- The ITreeSelection from the ReactorViewer's TreeView.dataSource
- the DataSource that the selection is being sent to, e.g.,
Input or Reference.public static IAnalysisWidgetRegistry getAnalysisWidgetRegistry()
IAnalysisWidgetRegistry
that is used to get
IAnalysisWidgetFactories for different component typespublic static void setAnalysisWidgetRegistry(IAnalysisWidgetRegistry registry)
widgetRegistry
if the provided value is not null.registry
- The new IAnalysisWidgetRegistry.public static void unsetAnalysisWidgetRegistry(IAnalysisWidgetRegistry registry)
widgetRegistry
. This notifies the bundle that the
registry has been shut down.registry
- The new IAnalysisWidgetRegistry.