org.pentaho.di.ui.repository.dialog
Class RepositoryImportProgressDialog

java.lang.Object
  extended by Dialog
      extended by org.pentaho.di.ui.repository.dialog.RepositoryImportProgressDialog
All Implemented Interfaces:
ProgressMonitorListener, RepositoryImportFeedbackInterface

public class RepositoryImportProgressDialog
extends Dialog
implements ProgressMonitorListener, RepositoryImportFeedbackInterface

Takes care of displaying a dialog that will handle the wait while we are importing a backup file from XML...

Since:
03-jun-2005
Author:
Matt

Constructor Summary
RepositoryImportProgressDialog(Shell parent, int style, Repository rep, String fileDirectory, String[] filenames, RepositoryDirectoryInterface baseDirectory, String versionComment)
           
RepositoryImportProgressDialog(Shell parent, int style, Repository rep, String fileDirectory, String[] filenames, RepositoryDirectoryInterface baseDirectory, String versionComment, ImportRules importRules)
           
 
Method Summary
 void addLog(String line)
           
 boolean askContinueOnErrorQuestion(String title, String message)
           
 void beginTask(String message, int nrWorks)
           
 void dispose()
           
 void done()
           
 boolean isAskingOverwriteConfirmation()
           
 boolean isCanceled()
           
 boolean jobOverwritePrompt(JobMeta jobMeta)
           
 void open()
           
 void setLabel(String labelText)
           
 void setTaskName(String taskName)
           
 void showError(String title, String message, Exception e)
           
 void subTask(String message)
           
 boolean transOverwritePrompt(TransMeta transMeta)
           
 void updateDisplay()
           
 void worked(int nrWorks)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryImportProgressDialog

public RepositoryImportProgressDialog(Shell parent,
                                      int style,
                                      Repository rep,
                                      String fileDirectory,
                                      String[] filenames,
                                      RepositoryDirectoryInterface baseDirectory,
                                      String versionComment)

RepositoryImportProgressDialog

public RepositoryImportProgressDialog(Shell parent,
                                      int style,
                                      Repository rep,
                                      String fileDirectory,
                                      String[] filenames,
                                      RepositoryDirectoryInterface baseDirectory,
                                      String versionComment,
                                      ImportRules importRules)
Method Detail

open

public void open()

dispose

public void dispose()

setLabel

public void setLabel(String labelText)
Specified by:
setLabel in interface RepositoryImportFeedbackInterface

updateDisplay

public void updateDisplay()
Specified by:
updateDisplay in interface RepositoryImportFeedbackInterface

showError

public void showError(String title,
                      String message,
                      Exception e)
Specified by:
showError in interface RepositoryImportFeedbackInterface

transOverwritePrompt

public boolean transOverwritePrompt(TransMeta transMeta)
Specified by:
transOverwritePrompt in interface RepositoryImportFeedbackInterface

jobOverwritePrompt

public boolean jobOverwritePrompt(JobMeta jobMeta)
Specified by:
jobOverwritePrompt in interface RepositoryImportFeedbackInterface

addLog

public void addLog(String line)
Specified by:
addLog in interface RepositoryImportFeedbackInterface

askContinueOnErrorQuestion

public boolean askContinueOnErrorQuestion(String title,
                                          String message)
Specified by:
askContinueOnErrorQuestion in interface RepositoryImportFeedbackInterface

beginTask

public void beginTask(String message,
                      int nrWorks)
Specified by:
beginTask in interface ProgressMonitorListener

done

public void done()
Specified by:
done in interface ProgressMonitorListener

isCanceled

public boolean isCanceled()
Specified by:
isCanceled in interface ProgressMonitorListener

setTaskName

public void setTaskName(String taskName)
Specified by:
setTaskName in interface ProgressMonitorListener

subTask

public void subTask(String message)
Specified by:
subTask in interface ProgressMonitorListener

worked

public void worked(int nrWorks)
Specified by:
worked in interface ProgressMonitorListener

isAskingOverwriteConfirmation

public boolean isAskingOverwriteConfirmation()
Specified by:
isAskingOverwriteConfirmation in interface RepositoryImportFeedbackInterface