Class LopAssignVirtualSpace

  • All Implemented Interfaces:
    ILinkOperation

    public class LopAssignVirtualSpace
    extends java.lang.Object
    implements ILinkOperation
    The link operation assigning the VirtualSpace to a participant, e.g. a panel.
    Author:
    Christopher Mindus
    • Constructor Detail

      • LopAssignVirtualSpace

        public LopAssignVirtualSpace​(IVSParticipant participant,
                                     EditorVirtualSpace virtualSpace)
        Constructor.
        Parameters:
        participant - The participant to set the VirtualSpace for (must implement IPropDesigner).
        virtualSpace - The VirtualSpace to assign.
    • Method Detail

      • isOperationEnabled

        public org.eclipse.core.runtime.IStatus isOperationEnabled()
        Returns if the operation is enabled for execution, regardless of any preconditions. These are tested once all parties have agreed that the operation might be a "go".
        Specified by:
        isOperationEnabled in interface ILinkOperation
        Returns:
        The status for the operation.
      • executeOperation

        public org.eclipse.core.runtime.IStatus executeOperation​(ComplexOperation op)
        Executes the operation.
        Specified by:
        executeOperation in interface ILinkOperation
        Parameters:
        op - The complex operation.
        Returns:
        The status of the operation. A complex operation would have a MultiStatus return code.
      • equalsOp

        public boolean equalsOp​(ILinkOperation op)
        Checks if two operations are equal.
        Specified by:
        equalsOp in interface ILinkOperation
        Parameters:
        op - Operation to compare with.
        Returns:
        true if they produce the same result, false otherwise.