Inheritance diagram for ExperimentEditor:
Collaboration diagram for ExperimentEditor:A FormEditor (multipage) for editing chains. Contains different pages as different views on the XML chain. The XML editor is the central interface between the model and the representation on disk. Only the XML editor is actually saved to disk, the others all manipulate the model object representation (the Chain instance), from which the XML editors content is refreshed when saving.
TODO sometimes, after opening, the editor is dirty
Public Methods | |
| IDocument | getDocument () |
| void | init (IEditorSite site, IEditorInput input) throws PartInitException |
| boolean | updateDocumentFromModel () |
| boolean | updateModelFromDocument () |
| void | doSave (IProgressMonitor monitor) |
| void | initSelectionListener () |
| void | doSaveAs () |
| boolean | isSaveAsAllowed () |
| void | selectConfigurationEditor (ComponentEntity component) |
| void | selectVisualEditor () |
| void | selectXMLEditor () |
| void | selectMetadataEditor () |
| Helper | getHelper () |
| GraphicalChainEditor | getGraphicalEditor () |
| boolean | autoConnect () |
| boolean | autoLayout () |
| void | checkDirty (boolean useModel) |
| void | setDirty (boolean dirty) |
| boolean | isDirty () |
| void | fireModified () |
| Experiment | getExperiment () |
| void | setExperiment (Experiment experiment) |
Public Static Fields | |
| static final String | ID = "de.uni_koeln.spinfo.tesla.client.ui.editors.ExperimentEditor" |
| static final int | META_EDITOR = 0 |
Protected Methods | |
| void | pageChange (int newPageIndex) |
| void | addPages () |
Protected Attributes | |
| final TeslaXMLEditor | xmlEditor = new TeslaXMLEditor(true, this) |
| Helper | helper |
| Experiment | experiment |
Package Attributes | |
| static final int | VISUAL_EDITOR = 1 |
| static final int | CONFIG_EDITOR = 2 |
| static final int | XML_EDITOR = 3 |
| GraphicalChainEditor | graphicalEditor |
| void addPages | ( | ) | [protected] |
| boolean autoConnect | ( | ) |
| boolean autoLayout | ( | ) |
| void checkDirty | ( | boolean | useModel | ) | [virtual] |
Checks for both kinds of editors if the document is different from the model. If it is, the editor is marked dirty.
| useModel | If true, the model objects are compared against the file on disk, else the XML content in the editor is used for comparison with the file on disk. |
Implements TeslaEditor.
| void doSave | ( | IProgressMonitor | monitor | ) |
| void doSaveAs | ( | ) |
| void fireModified | ( | ) | [inherited] |
| IDocument getDocument | ( | ) |
| Experiment getExperiment | ( | ) | [inherited] |
| GraphicalChainEditor getGraphicalEditor | ( | ) |
| Helper getHelper | ( | ) |
| void init | ( | IEditorSite | site, |
| IEditorInput | input | ||
| ) | throws PartInitException |
Instantiates the model (the Chain instance) from the editor input (the XML file).
| void initSelectionListener | ( | ) |
| boolean isDirty | ( | ) | [inherited] |
| boolean isSaveAsAllowed | ( | ) |
| void pageChange | ( | int | newPageIndex | ) | [protected] |
| void selectConfigurationEditor | ( | ComponentEntity | component | ) |
| void selectMetadataEditor | ( | ) |
Sets the active page to the editor
| void selectVisualEditor | ( | ) |
Sets the active page to the editor
| void selectXMLEditor | ( | ) |
Sets the active page to the editor
| void setDirty | ( | boolean | dirty | ) | [inherited] |
| void setExperiment | ( | Experiment | experiment | ) | [inherited] |
| boolean updateDocumentFromModel | ( | ) | [virtual] |
Sets the XML editor's content to current model.
Implements TeslaEditor.
| boolean updateModelFromDocument | ( | ) |
Updates the model object (Chain) from the content of the XML editor
final int CONFIG_EDITOR = 2 [package] |
Experiment experiment [protected, inherited] |
The model we're working on.
GraphicalChainEditor graphicalEditor [package] |
final String ID = "de.uni_koeln.spinfo.tesla.client.ui.editors.ExperimentEditor" [static] |
final int META_EDITOR = 0 [static] |
final int VISUAL_EDITOR = 1 [package] |
final int XML_EDITOR = 3 [package] |
final TeslaXMLEditor xmlEditor = new TeslaXMLEditor(true, this) [protected] |
This is the actual interface between the model and the representation on disk. This is the editor that is actually saved.