Class RepositoryDirectoryUI


  • public class RepositoryDirectoryUI
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.pentaho.di.repository.RepositoryDirectoryInterface chooseDirectory​(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository rep, org.pentaho.di.repository.RepositoryDirectoryInterface directoryFrom)  
      static void getDirectoryTree​(org.eclipse.swt.widgets.TreeItem ti, org.eclipse.swt.graphics.Color dircolor, org.pentaho.di.repository.RepositoryDirectoryInterface dir)
      Gets a directory tree on a TreeItem to work with.
      static void getTreeWithNames​(org.eclipse.swt.widgets.TreeItem ti, org.pentaho.di.repository.Repository rep, org.eclipse.swt.graphics.Color dircolor, int sortPosition, boolean includeDeleted, boolean ascending, boolean getTransformations, boolean getJobs, org.pentaho.di.repository.RepositoryDirectoryInterface dir, String filterString, Pattern pattern)
      Set the name of this directory on a TreeItem.
      protected static List<org.pentaho.di.repository.RepositoryElementMetaInterface> loadRepositoryObjects​(org.pentaho.di.repository.RepositoryDirectoryInterface dir, boolean getTransformations, boolean getJobs, org.pentaho.di.repository.Repository rep)  
    • Constructor Detail

      • RepositoryDirectoryUI

        public RepositoryDirectoryUI()
    • Method Detail

      • getTreeWithNames

        public static void getTreeWithNames​(org.eclipse.swt.widgets.TreeItem ti,
                                            org.pentaho.di.repository.Repository rep,
                                            org.eclipse.swt.graphics.Color dircolor,
                                            int sortPosition,
                                            boolean includeDeleted,
                                            boolean ascending,
                                            boolean getTransformations,
                                            boolean getJobs,
                                            org.pentaho.di.repository.RepositoryDirectoryInterface dir,
                                            String filterString,
                                            Pattern pattern)
                                     throws org.pentaho.di.core.exception.KettleDatabaseException
        Set the name of this directory on a TreeItem. Also, create children on this TreeItem to reflect the subdirectories. In these sub-directories, fill in the available transformations from the repository.
        Parameters:
        ti - The TreeItem to set the name on and to create the subdirectories
        rep - The repository
        objectMap - The tree path to repository object mapping to populate.
        dircolor - The color in which the directories will be drawn.
        sortPosition - The sort position
        ascending - The ascending flag
        getTransformations - Include transformations in the tree or not
        getJobs - Include jobs in the tree or not
        Throws:
        org.pentaho.di.core.exception.KettleDatabaseException
      • loadRepositoryObjects

        protected static List<org.pentaho.di.repository.RepositoryElementMetaInterface> loadRepositoryObjects​(org.pentaho.di.repository.RepositoryDirectoryInterface dir,
                                                                                                              boolean getTransformations,
                                                                                                              boolean getJobs,
                                                                                                              org.pentaho.di.repository.Repository rep)
                                                                                                       throws org.pentaho.di.core.exception.KettleDatabaseException
        Throws:
        org.pentaho.di.core.exception.KettleDatabaseException
      • getDirectoryTree

        public static void getDirectoryTree​(org.eclipse.swt.widgets.TreeItem ti,
                                            org.eclipse.swt.graphics.Color dircolor,
                                            org.pentaho.di.repository.RepositoryDirectoryInterface dir)
        Gets a directory tree on a TreeItem to work with.
        Parameters:
        ti - The TreeItem to set the directory tree on
        dircolor - The color of the directory tree item.
      • chooseDirectory

        public static org.pentaho.di.repository.RepositoryDirectoryInterface chooseDirectory​(org.eclipse.swt.widgets.Shell shell,
                                                                                             org.pentaho.di.repository.Repository rep,
                                                                                             org.pentaho.di.repository.RepositoryDirectoryInterface directoryFrom)