Package com.iizigo.link.ui
Class UIBuilderOperation
java.lang.Object
com.iizigo.link.ui.UIBuilderOperation
- All Implemented Interfaces:
ILinkOperation
The UI builder operation added to the build operations.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoid
addPages
(LinkWizard wizard) Called when the wizard is created and allows the creation of additional wizard pages required.Creates the operation node for presentation in the link wizard main page.boolean
Checks if two operations are equal.Executes the operation.Returns the dependent operations that must be performed in order for this operation to be able to complete.Returns if the operation is enabled for execution, regardless of any preconditions.boolean
Returns if a build operation is selected or not.boolean
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 Details
isWizardDialogRequired
public boolean isWizardDialogRequired()Returns if the link wizard dialog must be shown.- Specified by:
isWizardDialogRequired
in interfaceILinkOperation
- Returns:
- true, always, to enable user to choose.
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 interfaceILinkOperation
- Returns:
- Always OK_STATUS.
addPages
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 interfaceILinkOperation
isSelected
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
Returns the dependent operations that must be performed in order for this operation to be able to complete.- Specified by:
getDependentOperations
in interfaceILinkOperation
- Returns:
- The collection of dependency operations, default empty list.
executeOperation
Executes the operation.- Specified by:
executeOperation
in interfaceILinkOperation
- 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
Checks if two operations are equal.- Specified by:
equalsOp
in interfaceILinkOperation
- Parameters:
op
- Operation to compare with.- Returns:
- true if they produce the same result, false otherwise.