Package com.iizigo.link.ui.builder
Class LayoutNewComponentsOperation
- java.lang.Object
- com.iizigo.link.ui.builder.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 Summary
Constructors Constructor Description LayoutNewComponentsOperation(IEUIContainer container, java.util.List<UIComp> components)Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemNavigatorPresentationcreateOperationNode(ItemNavigatorPresentation parent)The item is never presented in the UI.booleanequalsOp(ILinkOperation op)Only one for a link operation.org.eclipse.core.runtime.IStatusexecuteOperation(ComplexOperation op)Executes the layout operation for the added components.org.eclipse.core.runtime.IStatusisOperationEnabled()Status is always OK.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.iizigo.link.ILinkOperation
addPages, getDependentOperations, isOperationEnabled, isPrecondition, isSelected, isWizardDialogRequired, validateOperations
Constructor Detail
LayoutNewComponentsOperation
public LayoutNewComponentsOperation(IEUIContainer container, java.util.List<UIComp> components)
Constructor.- Parameters:
components- The list of components.
Method Detail
createOperationNode
public ItemNavigatorPresentation createOperationNode(ItemNavigatorPresentation parent)
The item is never presented in the UI.- Specified by:
createOperationNodein interfaceILinkOperation- Parameters:
parent- The parent node.- Returns:
- The node.
isOperationEnabled
public org.eclipse.core.runtime.IStatus isOperationEnabled()
Status is always OK.- Specified by:
isOperationEnabledin interfaceILinkOperation- Returns:
- The status for the operation.
equalsOp
public boolean equalsOp(ILinkOperation op)
Only one for a link operation.- Specified by:
equalsOpin interfaceILinkOperation- 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:
executeOperationin interfaceILinkOperation- Parameters:
op- The complex operation.- Returns:
- The status.
- Throws:
org.eclipse.core.runtime.CoreException- If the execution failed.