Package org.pentaho.di.ui.core.widget
Class TreeUtil
java.lang.Object
org.pentaho.di.ui.core.widget.TreeUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final org.eclipse.swt.widgets.TreeItemfindTreeItem(org.eclipse.swt.widgets.Tree tree, String[] path) static StringfindUniqueSuffix(String baseName, Set<String> existingNames) Finds the first name of the form "baseName + ' ' + number" that is not in existingNamesstatic final voidsetOptimalWidthOnColumns(org.eclipse.swt.widgets.Tree tree)
-
Constructor Details
-
TreeUtil
public TreeUtil()
-
-
Method Details
-
setOptimalWidthOnColumns
public static final void setOptimalWidthOnColumns(org.eclipse.swt.widgets.Tree tree) -
findTreeItem
public static final org.eclipse.swt.widgets.TreeItem findTreeItem(org.eclipse.swt.widgets.Tree tree, String[] path) -
findUniqueSuffix
Finds the first name of the form "baseName + ' ' + number" that is not in existingNames- Parameters:
baseName- name to append toexistingNames- set of existing names- Returns:
- String new name
-