Class TreeUtil

java.lang.Object
org.pentaho.di.ui.core.widget.TreeUtil

public class TreeUtil extends Object
  • 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

      public static String findUniqueSuffix(String baseName, Set<String> existingNames)
      Finds the first name of the form "baseName + ' ' + number" that is not in existingNames
      Parameters:
      baseName - name to append to
      existingNames - set of existing names
      Returns:
      String new name