Package com.iizigo.link.ui
Class UIBuilderOperation
- java.lang.Object
- com.iizigo.link.ui.UIBuilderOperation
 
- All Implemented Interfaces:
- ILinkOperation
 - public class UIBuilderOperation extends java.lang.Object implements ILinkOperation The UI builder operation added to the build operations.- Author:
- Christopher Mindus
 
- Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - void- addPages(LinkWizard wizard)Called when the wizard is created and allows the creation of additional wizard pages required.- ItemNavigatorPresentation- createOperationNode(ItemNavigatorPresentation parent)Creates the operation node for presentation in the link wizard main page.- boolean- equalsOp(ILinkOperation op)Checks if two operations are equal.- org.eclipse.core.runtime.IStatus- executeOperation(ComplexOperation op)Executes the operation.- java.util.List<ILinkOperation>- getDependentOperations()Returns the dependent operations that must be performed in order for this operation to be able to complete.- org.eclipse.core.runtime.IStatus- isOperationEnabled()Returns if the operation is enabled for execution, regardless of any preconditions.- boolean- isSelected(UIBuilderSubOperation bop)Returns if a build operation is selected or not.- boolean- isWizardDialogRequired()Returns if the link wizard dialog must be shown.- 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- isOperationEnabled, isPrecondition, isSelected, validateOperations
 
 
- Method Detail- isWizardDialogRequired- public boolean isWizardDialogRequired() Returns if the link wizard dialog must be shown.- Specified by:
- isWizardDialogRequiredin interface- ILinkOperation
- Returns:
- 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:
- isOperationEnabledin 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:
- createOperationNodein 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:
- addPagesin 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 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:
- getDependentOperationsin interface- ILinkOperation
- Returns:
- 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:
- executeOperationin interface- ILinkOperation
- Parameters:
- op- The complex operation.
- Returns:
- The status of the operation. A complex operation would have a MultiStatusreturn code.
- Throws:
- org.eclipse.core.runtime.CoreException- If the execution failed.
 
 - equalsOp- public boolean equalsOp(ILinkOperation op) Checks if two operations are equal.- Specified by:
- equalsOpin interface- ILinkOperation
- Parameters:
- op- Operation to compare with.
- Returns:
- true if they produce the same result, false otherwise.