public class ProcessEditorClipboard
extends java.lang.Object
Constructor and Description |
---|
ProcessEditorClipboard() |
Modifier and Type | Method and Description |
---|---|
void |
copy(ProcessEditor editor,
SelectionHandler sel)
Copies the current selection of the ProcessModel to the clipboard.
|
void |
cut(ProcessEditor editor,
SelectionHandler sel)
Cuts the current selection.
|
void |
delete(ProcessEditor editor,
SelectionHandler sel)
Deletes the selection from the ProcessModel.
|
ProcessModel |
getContent()
Returns the current content of the clipboard.
|
static ProcessEditorClipboard |
getInstance()
Returns the singleton instance of the ProcessEditorClipboard.
|
void |
paste(ProcessEditor editor,
SelectionHandler sel)
Pastes the clipboard content to the current ProcessModel (if the type
matches)
|
public static ProcessEditorClipboard getInstance()
public ProcessModel getContent()
public void paste(ProcessEditor editor, SelectionHandler sel)
model
- sel
- public void copy(ProcessEditor editor, SelectionHandler sel)
model
- sel
- public void delete(ProcessEditor editor, SelectionHandler sel)
model
- sel
- public void cut(ProcessEditor editor, SelectionHandler sel)
model
- sel
-