Class UIBuilderOperation

java.lang.Object
com.iizigo.link.ui.UIBuilderOperation
All Implemented Interfaces:
ILinkOperation

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

    • 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 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.
    • createOperationNode

      public ItemNavigatorPresentation createOperationNode(ItemNavigatorPresentation parent)
      Creates the operation node for presentation in the link wizard main page.
      Specified by:
      createOperationNode in interface ILinkOperation
      Parameters:
      parent - The parent node.
      Returns:
      The node.
    • 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 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 IStatus executeOperation(ComplexOperation op) throws 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:
      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.