Class LayoutNewComponentsOperation

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

public class LayoutNewComponentsOperation extends Object implements ILinkOperation
Layouts out the components added in the build data after creation. Only one such operation can be added to the link wizard.
Author:
Christopher Mindus
  • Constructor Details

    • LayoutNewComponentsOperation

      public LayoutNewComponentsOperation(IEUIContainer container, List<UIComp> components)
      Constructor.
      Parameters:
      components - The list of components.
  • Method Details

    • createOperationNode

      public ItemNavigatorPresentation createOperationNode(ItemNavigatorPresentation parent)
      The item is never presented in the UI.
      Specified by:
      createOperationNode in interface ILinkOperation
      Parameters:
      parent - The parent node.
      Returns:
      The node.
    • isOperationEnabled

      public org.eclipse.core.runtime.IStatus isOperationEnabled()
      Status is always OK.
      Specified by:
      isOperationEnabled in interface ILinkOperation
      Returns:
      The status for the operation.
    • equalsOp

      public boolean equalsOp(ILinkOperation op)
      Only one for a link operation.
      Specified by:
      equalsOp in interface ILinkOperation
      Parameters:
      op - Operation to compare with.
      Returns:
      true if they produce the same result, false otherwise.
    • executeOperation

      public org.eclipse.core.runtime.IStatus executeOperation(ComplexOperation op) throws org.eclipse.core.runtime.CoreException
      Executes the layout operation for the added components.
      Specified by:
      executeOperation in interface ILinkOperation
      Parameters:
      op - The complex operation.
      Returns:
      The status.
      Throws:
      org.eclipse.core.runtime.CoreException - If the execution failed.