Class UIBuilderOperation

  • All Implemented Interfaces:
    ILinkOperation

    public class UIBuilderOperation
    extends java.lang.Object
    implements ILinkOperation
    The UI builder operation added to the build operations.
    Author:
    Christopher Mindus
    • Method Detail

      • isWizardDialogRequired

        public boolean isWizardDialogRequired()
        Returns if the link wizard dialog must be shown.
        Specified by:
        isWizardDialogRequired in interface ILinkOperation
        Returns:
        true, always, to enable user to choose.
      • 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:
        Always OK_STATUS.
      • addPages

        public void addPages​(LinkWizard wizard)
        Called when the wizard is created and allows the creation of additional wizard pages required. All created pages MUST implement done to get the link wizard information.
        Specified by:
        addPages in interface ILinkOperation
      • isSelected

        public boolean isSelected​(UIBuilderSubOperation bop)
        Returns if a build operation is selected or not. If the main operation is skipped, all children operations will also be skipped and unselected.
        Parameters:
        bop - The build operation.
        Returns:
        true if selected, false otherwise.
      • getDependentOperations

        public java.util.List<ILinkOperation> getDependentOperations()
        Returns the dependent operations that must be performed in order for this operation to be able to complete.
        Specified by:
        getDependentOperations in interface ILinkOperation
        Returns:
        The collection of dependency operations, default empty list.
      • executeOperation

        public org.eclipse.core.runtime.IStatus executeOperation​(ComplexOperation op)
                                                          throws org.eclipse.core.runtime.CoreException
        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.
        Throws:
        org.eclipse.core.runtime.CoreException - If the execution failed.
      • 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.