public class TreeCompoundTask extends CompoundTask
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.widgets.Composite |
cmpSubtaskContainer |
protected static java.lang.String |
INDEX_SEPARATOR |
protected NavTree |
navTree |
sCurrentTaskSheet
container, context, topControl
Constructor and Description |
---|
TreeCompoundTask(java.lang.String sLabel,
boolean needHistory)
Constructor
|
Modifier and Type | Method and 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 navigator
|
void |
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 selection
|
void |
updateTree()
Updates left tree which contains all page nodes.
|
protected void |
updateTreeItem() |
addSubtask, getCurrentSubtask, removeSubtask
addError, getContext, getControl, getDescription, getErrorMessage, getErrors, getImage, getMessage, getTitle, performHelp, removeError, setContext, setDescription, setErrorHints, setImageDescriptor, setTitle, setUIProvider, setVisible
protected org.eclipse.swt.widgets.Composite cmpSubtaskContainer
protected NavTree navTree
protected static final java.lang.String INDEX_SEPARATOR
public TreeCompoundTask(java.lang.String sLabel, boolean needHistory)
sLabel
- Title of this taskneedHistory
- Indicates whether history and navigation bar are neededpublic void createControl(org.eclipse.swt.widgets.Composite parent)
createControl
in interface org.eclipse.jface.dialogs.IDialogPage
createControl
in class SimpleTask
protected void switchToDefaultItem()
protected org.eclipse.swt.widgets.TreeItem getDefaultSelection()
protected org.eclipse.swt.widgets.Composite createContainer(org.eclipse.swt.widgets.Composite parent)
parent
- parent compositeprotected org.eclipse.swt.widgets.Composite createTitleArea(org.eclipse.swt.widgets.Composite parent)
parent
- the SWT parent for the title area composite.protected java.lang.String getTitleAreaString()
protected void populateSubtasks()
protected void updateTreeItem()
public void updateTree()
protected ISubtaskSheet getSubtask(java.lang.String sSubtaskPath)
getSubtask
in class CompoundTask
protected boolean containSubtask(java.lang.String sSubtaskPath)
containSubtask
in class CompoundTask
protected void switchTo(java.lang.String sSubtaskPath, boolean needSelection)
public void switchTo(java.lang.String sSubtaskPath)
switchTo
in class CompoundTask
public void switchToTreeItem(org.eclipse.swt.widgets.TreeItem treeItem)
treeItem
- Tree item corresponded to the subtaskprotected void createSubtaskArea(org.eclipse.swt.widgets.Composite parent, ISubtaskSheet subtask)
public NavTree getNavigatorTree()
public void setPopupSelection(java.lang.String popupName)
popupName
- popup key registered in the subtask.protected java.lang.String getPopupSelection()
protected void setSubtaskSelection(java.lang.String subtaskPath)
protected java.lang.String getSubtaskSelection()
public void dispose()
dispose
in interface org.eclipse.jface.dialogs.IDialogPage
dispose
in class CompoundTask
Copyright © 2008 Actuate Corp. All rights reserved.