Package com.iizigo.vs
Class VSHelper
java.lang.Object
com.iizigo.vs.VSHelper
Helper class for VirtualSpace.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionstatic EditorVirtualSpace
getVirtualSpace
(org.eclipse.swt.widgets.Shell shell, ModuleModel model, IVSAccessor vsAccessor, IPropUndoRedo undoRedo) Gets the VirtualSpace from the participant.static EditorVirtualSpace
getVirtualSpace
(org.eclipse.swt.widgets.Shell shell, ModuleModel model, IVSParticipant vsParticipant, IPropUndoRedo undoRedo) Gets the VirtualSpace from the participant.
Constructor Details
VSHelper
public VSHelper()
Method Details
getVirtualSpace
public static EditorVirtualSpace getVirtualSpace(org.eclipse.swt.widgets.Shell shell, ModuleModel model, IVSAccessor vsAccessor, IPropUndoRedo undoRedo) Gets the VirtualSpace from the participant. If it is not defined, a question to connect or create a VirtualSpace is shown before returning. This method must be called from the SWT thread and can show dialogs.- Parameters:
shell
- The shell for dialogs or message boxes.model
- The Module model.vsAccessor
- The VS accessor.undoRedo
- Undo/redo instance.- Returns:
- The existing VirtualSpace connection, or the VirtualSpace created or connected, or null for operation canceled.
getVirtualSpace
public static EditorVirtualSpace getVirtualSpace(org.eclipse.swt.widgets.Shell shell, ModuleModel model, IVSParticipant vsParticipant, IPropUndoRedo undoRedo) Gets the VirtualSpace from the participant. If it is not defined, a question to connect or create a VirtualSpace is shown before returning. This method must be called from the SWT thread and can show dialogs.- Parameters:
shell
- The shell for dialogs or message boxes.model
- The Module model.vsParticipant
- The instance of the participant.undoRedo
- Undo/redo instance.- Returns:
- The existing VirtualSpace connection, or the VirtualSpace created or connected, or null for operation canceled.