Package com.iizigo.vs
Class VSHelper
- java.lang.Object
- com.iizigo.vs.VSHelper
public class VSHelper extends java.lang.Object
Helper class for VirtualSpace.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description VSHelper()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
Method Detail
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.