Class TreeCompoundTask
java.lang.Object
org.eclipse.birt.core.ui.frameworks.taskwizard.SimpleTask
org.eclipse.birt.core.ui.frameworks.taskwizard.CompoundTask
org.eclipse.birt.core.ui.frameworks.taskwizard.TreeCompoundTask
- All Implemented Interfaces:
ITask,org.eclipse.jface.dialogs.IDialogPage
Compound task realized for tree navigator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.swt.widgets.Compositeprotected static final Stringprotected NavTreeFields inherited from class org.eclipse.birt.core.ui.frameworks.taskwizard.CompoundTask
sCurrentTaskSheetFields inherited from class org.eclipse.birt.core.ui.frameworks.taskwizard.SimpleTask
container, context, topControl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancontainSubtask(String sSubtaskPath) protected org.eclipse.swt.widgets.CompositecreateContainer(org.eclipse.swt.widgets.Composite parent) Creates the UI in the right of tree navigatorvoidcreateControl(org.eclipse.swt.widgets.Composite parent) protected voidcreateSubtaskArea(org.eclipse.swt.widgets.Composite parent, ISubtaskSheet subtask) protected org.eclipse.swt.widgets.CompositecreateTitleArea(org.eclipse.swt.widgets.Composite parent) Creates the compound task's title area.voiddispose()protected org.eclipse.swt.widgets.TreeItemprotected Stringprotected ISubtaskSheetgetSubtask(String sSubtaskPath) protected Stringprotected Stringprotected voidvoidsetPopupSelection(String popupName) Stores the last popup selection to open in the next time.protected voidsetSubtaskSelection(String subtaskPath) voidprotected voidprotected voidvoidswitchToTreeItem(org.eclipse.swt.widgets.TreeItem treeItem) Switches to the specified subtask and sets the selectionvoidUpdates left tree which contains all page nodes.protected voidMethods inherited from class org.eclipse.birt.core.ui.frameworks.taskwizard.CompoundTask
addSubtask, getCurrentSubtask, removeSubtaskMethods inherited from class org.eclipse.birt.core.ui.frameworks.taskwizard.SimpleTask
addError, getContext, getControl, getDescription, getErrorMessage, getErrors, getImage, getMessage, getTitle, performHelp, removeError, setContext, setDescription, setErrorHints, setImageDescriptor, setTitle, setUIProvider, setVisible
-
Field Details
-
cmpSubtaskContainer
protected org.eclipse.swt.widgets.Composite cmpSubtaskContainer -
INDEX_SEPARATOR
- See Also:
-
-
Constructor Details
-
TreeCompoundTask
Constructor- Parameters:
sLabel- Title of this taskneedHistory- Indicates whether history and navigation bar are needed
-
-
Method Details
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createControlin interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
createControlin classSimpleTask
-
switchToDefaultItem
protected void switchToDefaultItem() -
getDefaultSelection
protected org.eclipse.swt.widgets.TreeItem getDefaultSelection() -
createContainer
protected org.eclipse.swt.widgets.Composite createContainer(org.eclipse.swt.widgets.Composite parent) Creates the UI in the right of tree navigator- Parameters:
parent- parent composite- Returns:
- top composite of the right part
-
createTitleArea
protected org.eclipse.swt.widgets.Composite createTitleArea(org.eclipse.swt.widgets.Composite parent) Creates the compound task's title area.- Parameters:
parent- the SWT parent for the title area composite.- Returns:
- the created title area composite.
-
getTitleAreaString
-
populateSubtasks
protected void populateSubtasks() -
updateTreeItem
protected void updateTreeItem() -
updateTree
public void updateTree()Updates left tree which contains all page nodes.- Since:
- 2.3
-
getSubtask
- Overrides:
getSubtaskin classCompoundTask
-
containSubtask
- Overrides:
containSubtaskin classCompoundTask
-
switchTo
-
switchTo
- Overrides:
switchToin classCompoundTask
-
switchToTreeItem
public void switchToTreeItem(org.eclipse.swt.widgets.TreeItem treeItem) Switches to the specified subtask and sets the selection- Parameters:
treeItem- Tree item corresponded to the subtask
-
createSubtaskArea
-
setPopupSelection
Stores the last popup selection to open in the next time. If this selection is not existent in current subtask, to open the popup stored in the subtask.- Parameters:
popupName- popup key registered in the subtask.
-
getPopupSelection
-
setSubtaskSelection
-
getSubtaskSelection
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
disposein classCompoundTask
-