public class ConfigurationTemplateTree extends AbstractConfigurationTree
MENU_ITEM_DATA_TREE, rootItem
Constructor and Description |
---|
ConfigurationTemplateTree(Composite parent,
int style,
SelectionListener listener)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAllRenderConfigs()
Reads all render configurations and adds them to the tree's root item.
|
protected Menu |
generatePopupMenu(Shell shell,
SelectionListener listener)
Generates the common popup menu items:
New
Duplicate
Delete
|
boolean |
isTemplateTree() |
void |
setPopupMenuConfigEnabled(boolean enabled)
Enables or disables menu entries depending on the selection state.
|
protected void |
setTreeItemIcon(TreeItem treeItem)
Called to set an image icon to the
TreeItem . |
addItem, expandFullTree, getItemByRenderConfiguration, getSelectedItem, hasSelection, reload, removeItem, selectItem, setItemColor
public ConfigurationTemplateTree(Composite parent, int style, SelectionListener listener)
parent
- The parent Composite
.style
- The widget style bits.listener
- The lestner to receive the tree selection eventes.protected void addAllRenderConfigs()
AbstractConfigurationTree
addAllRenderConfigs
in class AbstractConfigurationTree
AbstractConfigurationTree.addAllRenderConfigs()
protected Menu generatePopupMenu(Shell shell, SelectionListener listener)
AbstractConfigurationTree
generatePopupMenu
in class AbstractConfigurationTree
shell
- The shell to be used for the produced Menu
object.listener
- The SelectionListener
to be used by the menu items.Menu
holding the MenuItem
object mentioned above.org.povclipse2.actionsets.render.settings.tree.AbstractConfigurationTree#generatePopupMenu(org.eclipse.swt.widgets.Shell, org.eclipse.swt.events.SelectionListener)
public void setPopupMenuConfigEnabled(boolean enabled)
IConfigurationTree
setPopupMenuConfigEnabled
in interface IConfigurationTree
setPopupMenuConfigEnabled
in class AbstractConfigurationTree
enabled
- true
to enable the "Delete" and "Duplicate" menu items.AbstractConfigurationTree.setPopupMenuConfigEnabled(boolean)
public boolean isTemplateTree()
isTemplateTree
in interface IConfigurationTree
isTemplateTree
in class AbstractConfigurationTree
true
if the tree is used for managing render configuration templates,
false
if it manages regular render configurations.IConfigurationTree.isTemplateTree()
protected void setTreeItemIcon(TreeItem treeItem)
AbstractConfigurationTree
TreeItem
.setTreeItemIcon
in class AbstractConfigurationTree
org.povclipse2.actionsets.render.settings.tree.AbstractConfigurationTree#setTreeItemIcon(org.eclipse.swt.widgets.TreeItem)