Package org.pentaho.di.ui.trans.dialog
Class TransPreviewProgressDialog
- java.lang.Object
-
- org.pentaho.di.ui.trans.dialog.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 Summary
Constructors Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLoggingText()
List<Object[]>
getPreviewRows(String stepname)
org.pentaho.di.core.row.RowMetaInterface
getPreviewRowsMeta(String stepname)
org.pentaho.di.trans.Trans
getTrans()
org.pentaho.di.trans.debug.TransDebugMeta
getTransDebugMeta()
boolean
isCancelled()
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 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 parsenow
- - 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 1date2
- - 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
-
-