Class LayoutNewComponentsOperation

  • All Implemented Interfaces:
    ILinkOperation

    public class LayoutNewComponentsOperation
    extends java.lang.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 Detail

      • LayoutNewComponentsOperation

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

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