Package org.pentaho.di.ui.trans.dialog
Class TransPreviewProgressDialog
java.lang.Object
org.pentaho.di.ui.trans.dialog.TransPreviewProgressDialog
Takes care of displaying a dialog that will handle the wait while previewing a transformation...
- Since:
- 13-jan-2006
- Author:
- Matt
-
Constructor Summary
ConstructorDescriptionTransPreviewProgressDialog
(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 Summary
Modifier and TypeMethodDescriptiongetPreviewRows
(String stepname) org.pentaho.di.core.row.RowMetaInterface
getPreviewRowsMeta
(String stepname) org.pentaho.di.trans.Trans
getTrans()
org.pentaho.di.trans.debug.TransDebugMeta
boolean
static boolean
isDateAfterOrSame
(String date1, String date2) Compares 2 date/times lexicographicallyorg.pentaho.di.trans.TransMeta
open()
org.pentaho.di.trans.TransMeta
open
(boolean showErrorDialogs) Opens the progress dialogstatic String
parseErrorMessage
(String errorMessage, Date now) Parse the error message to return only those whose date/time stamp is after "now" Date
-
Constructor Details
-
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 Details
-
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
Parse the error message to return only those whose date/time stamp is after "now" Date- Parameters:
errorMessage
- - String to parsenow
- - Date before error message occurred- Returns:
- - The parsed error message with only errors that occurred after "now"
-
isDateAfterOrSame
Compares 2 date/times lexicographically- Parameters:
date1
- - String representation of date 1date2
- - String representation of date 2- Returns:
- - true true if date2 is lexicographically greater than date1
-
getPreviewRows
- 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
- 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
- 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
-