Package com.iizigo.link.ui
Class UIBuilderSubOperation
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
com.iizigo.link.ui.UIBuilderSubOperation
- All Implemented Interfaces:
ILinkOperation,ILinkWizardPage,IDialogPage,IMessageProvider,IWizardPage
- Direct Known Subclasses:
VSActionBuilderSubOp,VSFieldBuilderSubOp
public abstract class UIBuilderSubOperation extends WizardPage implements ILinkOperation, ILinkWizardPage
The UI build link operation that extends the normal link operation with information about the source so that they can be grouped.
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ApplicationUIThe Application UI.protected final IEUIContainerThe source container.protected ControlThe last focused control.protected final IAdaptableThe source being built.Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNINGConstructor Summary
ConstructorsConstructorDescriptionUIBuilderSubOperation(String pageID, IEUIContainer container, IAdaptable source) Constructor.Method Summary
Modifier and TypeMethodDescriptionvoidaddPages(LinkWizard wizard) Called when the wizard is created and allows the creation of additional wizard pages required.final booleanChecks if two operations are equal.abstract StringReturns the builder component processed.abstract ImageReturns the builder component image.abstract StringThe description of the common operation that is displayed on top of the wizard page.abstract StringReturns the title of the common operation.abstract ImageDescriptorThe large image descriptor for the operation, e.g.final ILinkOperationReturns the link operation for the page.Returns the required VirtualSpace to be connected.abstract ImageThe image for the operation in the tree on the first wizard page.Gets the build data.final IStatusReturns if the operation is enabled for execution, regardless of any preconditions.booleanPage is complete if not selected, even if added.final booleanReturns if the operation is a precondition required to run BEFORE the parent operation runs, or if it should be run AFTERWARDS.final booleanReturns if this operation is selected or not.protected voidsetControl(Control newControl) Sets the control.voidsetVisible(boolean visible) Set focus to name at show.Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringMethods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitleMethods inherited from interface com.iizigo.link.ILinkOperation
createOperationNode, executeOperation, getDependentOperations, isOperationEnabled, isWizardDialogRequired, validateOperationsMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
canFlipToNextPage, getName, getNextPage, getPreviousPage, getWizard, setPreviousPage, setWizard
Field Details
appUI
The Application UI.container
The source container.source
The source being built.lastFocused
The last focused control.
Constructor Details
UIBuilderSubOperation
Constructor.- Parameters:
pageID- The page ID.container- The container.source- The source component being built.
Method Details
getUIBuildData
Gets the build data.getLinkOperation
Returns the link operation for the page. Several pages may be present for an operation.- Specified by:
getLinkOperationin interfaceILinkWizardPage- Returns:
- The link operation of the page.
getRequiredVirtualSpace
Returns the required VirtualSpace to be connected.- Returns:
- The VirtualSpace required, or null for not required.
isSelected
public final boolean isSelected()Returns if this operation is selected or not.This method is used e.g. in the build operations where a page shouldn't be displayed if the build wizard is not selected.
- Specified by:
isSelectedin interfaceILinkOperation- Returns:
- true if build wizard is selected, false otherwise.
isPrecondition
public final boolean isPrecondition()Returns if the operation is a precondition required to run BEFORE the parent operation runs, or if it should be run AFTERWARDS.- Specified by:
isPreconditionin interfaceILinkOperation- Returns:
- true to run BEFORE, false to run AFTERWARDS.
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 interfaceILinkOperation- Returns:
- The status for the operation.
equalsOp
Checks if two operations are equal.- Specified by:
equalsOpin interfaceILinkOperation- Parameters:
op- Operation to compare with.- Returns:
- true if they produce the same result, false otherwise.
getCommonTitle
Returns the title of the common operation.getCommonDescription
The description of the common operation that is displayed on top of the wizard page.getTreeImage
The image for the operation in the tree on the first wizard page.getLargeImage
The large image descriptor for the operation, e.g. an Action, Field, etc.getBuilderComponent
Returns the builder component processed.getBuilderImage
Returns the builder component image.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:
addPagesin interfaceILinkOperation
setVisible
public void setVisible(boolean visible) Set focus to name at show.- Specified by:
setVisiblein interfaceIDialogPage- Overrides:
setVisiblein classDialogPage
setControl
Sets the control.- Overrides:
setControlin classDialogPage
isPageComplete
public boolean isPageComplete()Page is complete if not selected, even if added.- Specified by:
isPageCompletein interfaceIWizardPage- Overrides:
isPageCompletein classWizardPage