Class TransPreviewProgressDialog


  • public class TransPreviewProgressDialog
    extends Object
    Takes care of displaying a dialog that will handle the wait while previewing a transformation...
    Since:
    13-jan-2006
    Author:
    Matt
    • Constructor Detail

      • TransPreviewProgressDialog

        public TransPreviewProgressDialog​(org.eclipse.swt.widgets.Shell shell,
                                          org.pentaho.di.trans.TransMeta transMeta,
                                          String[] previewStepNames,
                                          int[] previewSize)
        Creates a new dialog that will handle the wait while previewing a transformation...
    • Method Detail

      • open

        public org.pentaho.di.trans.TransMeta open()
      • open

        public org.pentaho.di.trans.TransMeta open​(boolean showErrorDialogs)
        Opens the progress dialog
        Parameters:
        showErrorDialogs - dictates whether error dialogs should be shown when errors occur - can be set to false to let the caller control error dialogs instead.
        Returns:
        a TransMeta
      • parseErrorMessage

        public static String parseErrorMessage​(String errorMessage,
                                               Date now)
        Parse the error message to return only those whose date/time stamp is after "now" Date
        Parameters:
        errorMessage - - String to parse
        now - - Date before error message occurred
        Returns:
        - The parsed error message with only errors that occurred after "now"
      • isDateAfterOrSame

        public static boolean isDateAfterOrSame​(String date1,
                                                String date2)
        Compares 2 date/times lexicographically
        Parameters:
        date1 - - String representation of date 1
        date2 - - String representation of date 2
        Returns:
        - true true if date2 is lexicographically greater than date1
      • getPreviewRows

        public List<Object[]> getPreviewRows​(String stepname)
        Parameters:
        stepname - the name of the step to get the preview rows for
        Returns:
        A list of rows as the result of the preview run.
      • getPreviewRowsMeta

        public org.pentaho.di.core.row.RowMetaInterface getPreviewRowsMeta​(String stepname)
        Parameters:
        stepname - the name of the step to get the preview rows for
        Returns:
        A description of the row (metadata)
      • isCancelled

        public boolean isCancelled()
        Returns:
        true is the preview was canceled by the user
      • getLoggingText

        public String getLoggingText()
        Returns:
        The logging text from the latest preview run
      • getTrans

        public org.pentaho.di.trans.Trans getTrans()
        Returns:
        The transformation object that executed the preview TransMeta
      • getTransDebugMeta

        public org.pentaho.di.trans.debug.TransDebugMeta getTransDebugMeta()
        Returns:
        the transDebugMeta