Class UIBuilderOperation

  • All Implemented Interfaces:

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

      • isWizardDialogRequired

        public boolean isWizardDialogRequired()
        Returns if the link wizard dialog must be shown.
        Specified by:
        isWizardDialogRequired in interface ILinkOperation
        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
        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.
        bop - The build operation.
        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
        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
        op - The complex operation.
        The status of the operation. A complex operation would have a MultiStatus return code.
        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
        op - Operation to compare with.
        true if they produce the same result, false otherwise.