Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
WhiteboardEditor () | |
void | createActions () |
Object | getAdapter (@SuppressWarnings("rawtypes") Class type) |
void | doSave (IProgressMonitor monitor) |
void | doSaveAs () |
boolean | isDirty () |
boolean | isSaveAsAllowed () |
void | updateSelectionActions () |
Static Public Attributes | |
static final String | ID = "de.fu_berlin.inf.dpp.whiteboard.whiteboardeditor" |
Protected Member Functions | |
void | initializeGraphicalViewer () |
void | updateViewerContents (ElementRecord root) |
void | createGraphicalViewer (Composite parent) |
void | initializePaletteViewer () |
void | configureGraphicalViewer () |
PaletteRoot | getPaletteRoot () |
Static Protected Member Functions | |
static ToolEntry | createTextToolEntry () |
static ToolEntry | createEllipseToolEntry () |
static ToolEntry | createRectangleToolEntry () |
static ToolEntry | createPolylineToolEntry () |
static ToolEntry | createLineToolEntry () |
static ToolEntry | createArrowToolEntry () |
The editor creates the GUI using the GEF API and initializes to listen to the WhiteboardManager.
de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.WhiteboardEditor | ( | ) |
Creates the editor with a custom command stack
void de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.configureGraphicalViewer | ( | ) | [protected] |
void de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.createActions | ( | ) |
static ToolEntry de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.createArrowToolEntry | ( | ) | [static, protected] |
static ToolEntry de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.createEllipseToolEntry | ( | ) | [static, protected] |
void de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.createGraphicalViewer | ( | Composite | parent | ) | [protected] |
Creates a custom ScrollingGraphicalViewer
that does not update actions while editparts are notified about applied records to recreate their figures.
This was added because performance decreases a lot if the whole selection infrastructure plus every SelectionAction
is recalculated on every selection handle removal during EditPart.refreshChildren()
.
static ToolEntry de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.createLineToolEntry | ( | ) | [static, protected] |
static ToolEntry de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.createPolylineToolEntry | ( | ) | [static, protected] |
static ToolEntry de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.createRectangleToolEntry | ( | ) | [static, protected] |
static ToolEntry de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.createTextToolEntry | ( | ) | [static, protected] |
void de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.doSave | ( | IProgressMonitor | monitor | ) |
void de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.doSaveAs | ( | ) |
Object de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.getAdapter | ( | @SuppressWarnings("rawtypes") Class | type | ) |
PaletteRoot de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.getPaletteRoot | ( | ) | [protected] |
void de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.initializeGraphicalViewer | ( | ) | [protected] |
Initializes the graphical viewer with the root element, from now it listens to applied remote records to update action enablement and to document root changes to update the root.
Overridden by the superclass method because selecting the created object here does not make sense as it differs from the one that will be created by the command (and finally by the DocumentRecord as it should be).
Reimplemented from de.fu_berlin.inf.dpp.whiteboard.gef.editor.SarosPermissionsGraphicalEditor.
void de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.initializePaletteViewer | ( | ) | [protected] |
boolean de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.isDirty | ( | ) |
boolean de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.isSaveAsAllowed | ( | ) |
void de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.updateSelectionActions | ( | ) |
void de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.updateViewerContents | ( | ElementRecord | root | ) | [protected] |
final String de.fu_berlin.inf.dpp.whiteboard.gef.editor.WhiteboardEditor.ID = "de.fu_berlin.inf.dpp.whiteboard.whiteboardeditor" [static] |