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
public class TreeCompoundTask extends CompoundTask
Compound task realized for tree navigator.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.widgets.Composite
cmpSubtaskContainer
protected static java.lang.String
INDEX_SEPARATOR
protected NavTree
navTree
-
Fields inherited from class org.eclipse.birt.core.ui.frameworks.taskwizard.CompoundTask
sCurrentTaskSheet
-
Fields inherited from class org.eclipse.birt.core.ui.frameworks.taskwizard.SimpleTask
container, context, topControl
-
-
Constructor Summary
Constructors Constructor Description TreeCompoundTask(java.lang.String sLabel, boolean needHistory)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
containSubtask(java.lang.String sSubtaskPath)
protected org.eclipse.swt.widgets.Composite
createContainer(org.eclipse.swt.widgets.Composite parent)
Creates the UI in the right of tree navigatorvoid
createControl(org.eclipse.swt.widgets.Composite parent)
protected void
createSubtaskArea(org.eclipse.swt.widgets.Composite parent, ISubtaskSheet subtask)
protected org.eclipse.swt.widgets.Composite
createTitleArea(org.eclipse.swt.widgets.Composite parent)
Creates the compound task's title area.void
dispose()
protected org.eclipse.swt.widgets.TreeItem
getDefaultSelection()
NavTree
getNavigatorTree()
protected java.lang.String
getPopupSelection()
protected ISubtaskSheet
getSubtask(java.lang.String sSubtaskPath)
protected java.lang.String
getSubtaskSelection()
protected java.lang.String
getTitleAreaString()
protected void
populateSubtasks()
void
setPopupSelection(java.lang.String popupName)
Stores the last popup selection to open in the next time.protected void
setSubtaskSelection(java.lang.String subtaskPath)
void
switchTo(java.lang.String sSubtaskPath)
protected void
switchTo(java.lang.String sSubtaskPath, boolean needSelection)
protected void
switchToDefaultItem()
void
switchToTreeItem(org.eclipse.swt.widgets.TreeItem treeItem)
Switches to the specified subtask and sets the selectionvoid
updateTree()
Updates left tree which contains all page nodes.protected void
updateTreeItem()
-
Methods inherited from class org.eclipse.birt.core.ui.frameworks.taskwizard.CompoundTask
addSubtask, getCurrentSubtask, removeSubtask
-
Methods 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 Detail
-
cmpSubtaskContainer
protected org.eclipse.swt.widgets.Composite cmpSubtaskContainer
-
navTree
protected NavTree navTree
-
INDEX_SEPARATOR
protected static final java.lang.String INDEX_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createControl
in interfaceorg.eclipse.jface.dialogs.IDialogPage
- Overrides:
createControl
in 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
protected java.lang.String 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
protected ISubtaskSheet getSubtask(java.lang.String sSubtaskPath)
- Overrides:
getSubtask
in classCompoundTask
-
containSubtask
protected boolean containSubtask(java.lang.String sSubtaskPath)
- Overrides:
containSubtask
in classCompoundTask
-
switchTo
protected void switchTo(java.lang.String sSubtaskPath, boolean needSelection)
-
switchTo
public void switchTo(java.lang.String sSubtaskPath)
- Overrides:
switchTo
in 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
protected void createSubtaskArea(org.eclipse.swt.widgets.Composite parent, ISubtaskSheet subtask)
-
getNavigatorTree
public NavTree getNavigatorTree()
-
setPopupSelection
public void setPopupSelection(java.lang.String popupName)
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
protected java.lang.String getPopupSelection()
-
setSubtaskSelection
protected void setSubtaskSelection(java.lang.String subtaskPath)
-
getSubtaskSelection
protected java.lang.String getSubtaskSelection()
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.jface.dialogs.IDialogPage
- Overrides:
dispose
in classCompoundTask
-
-