Class RepositoryImportProgressDialog

  • All Implemented Interfaces:
    org.pentaho.di.core.gui.HasOverwritePrompter, org.pentaho.di.core.ProgressMonitorListener, org.pentaho.di.repository.RepositoryImportFeedbackInterface

    public class RepositoryImportProgressDialog
    extends org.eclipse.swt.widgets.Dialog
    implements org.pentaho.di.core.ProgressMonitorListener, org.pentaho.di.repository.RepositoryImportFeedbackInterface, org.pentaho.di.core.gui.HasOverwritePrompter
    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 Detail

      • RepositoryImportProgressDialog

        public RepositoryImportProgressDialog​(org.eclipse.swt.widgets.Shell parent,
                                              int style,
                                              org.pentaho.di.repository.Repository rep,
                                              String fileDirectory,
                                              String[] filenames,
                                              org.pentaho.di.repository.RepositoryDirectoryInterface baseDirectory,
                                              String versionComment)
      • RepositoryImportProgressDialog

        public RepositoryImportProgressDialog​(org.eclipse.swt.widgets.Shell parent,
                                              int style,
                                              org.pentaho.di.repository.Repository rep,
                                              String fileDirectory,
                                              String[] filenames,
                                              org.pentaho.di.repository.RepositoryDirectoryInterface baseDirectory,
                                              String versionComment,
                                              org.pentaho.di.imp.ImportRules importRules)
    • Method Detail

      • open

        public void open()
      • dispose

        public void dispose()
      • setLabel

        public void setLabel​(String labelText)
        Specified by:
        setLabel in interface org.pentaho.di.repository.RepositoryImportFeedbackInterface
      • updateDisplay

        public void updateDisplay()
        Specified by:
        updateDisplay in interface org.pentaho.di.repository.RepositoryImportFeedbackInterface
      • showError

        public void showError​(String title,
                              String message,
                              Exception e)
        Specified by:
        showError in interface org.pentaho.di.repository.RepositoryImportFeedbackInterface
      • transOverwritePrompt

        public boolean transOverwritePrompt​(org.pentaho.di.trans.TransMeta transMeta)
        Specified by:
        transOverwritePrompt in interface org.pentaho.di.repository.RepositoryImportFeedbackInterface
      • jobOverwritePrompt

        public boolean jobOverwritePrompt​(org.pentaho.di.job.JobMeta jobMeta)
        Specified by:
        jobOverwritePrompt in interface org.pentaho.di.repository.RepositoryImportFeedbackInterface
      • addLog

        public void addLog​(String line)
        Specified by:
        addLog in interface org.pentaho.di.repository.RepositoryImportFeedbackInterface
      • askContinueOnErrorQuestion

        public boolean askContinueOnErrorQuestion​(String title,
                                                  String message)
        Specified by:
        askContinueOnErrorQuestion in interface org.pentaho.di.repository.RepositoryImportFeedbackInterface
      • beginTask

        public void beginTask​(String message,
                              int nrWorks)
        Specified by:
        beginTask in interface org.pentaho.di.core.ProgressMonitorListener
      • done

        public void done()
        Specified by:
        done in interface org.pentaho.di.core.ProgressMonitorListener
      • isCanceled

        public boolean isCanceled()
        Specified by:
        isCanceled in interface org.pentaho.di.core.ProgressMonitorListener
      • setTaskName

        public void setTaskName​(String taskName)
        Specified by:
        setTaskName in interface org.pentaho.di.core.ProgressMonitorListener
      • subTask

        public void subTask​(String message)
        Specified by:
        subTask in interface org.pentaho.di.core.ProgressMonitorListener
      • worked

        public void worked​(int nrWorks)
        Specified by:
        worked in interface org.pentaho.di.core.ProgressMonitorListener
      • isAskingOverwriteConfirmation

        public boolean isAskingOverwriteConfirmation()
        Specified by:
        isAskingOverwriteConfirmation in interface org.pentaho.di.repository.RepositoryImportFeedbackInterface
      • getOverwritePrompter

        public org.pentaho.di.core.gui.OverwritePrompter getOverwritePrompter()
        Specified by:
        getOverwritePrompter in interface org.pentaho.di.core.gui.HasOverwritePrompter