Package com.iizigo.vs

Class VSHelper


  • public class VSHelper
    extends java.lang.Object
    Helper class for VirtualSpace.
    Author:
    Christopher Mindus
    • Constructor Detail

      • VSHelper

        public VSHelper()
    • 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.