ca.sqlpower.architect.swingui.action
Class ExportDDLAction.ConflictResolverProcess

java.lang.Object
  extended by ca.sqlpower.swingui.SPSwingWorker
      extended by ca.sqlpower.swingui.MonitorableWorker
          extended by ca.sqlpower.architect.swingui.action.ExportDDLAction.ConflictResolverProcess
All Implemented Interfaces:
ca.sqlpower.util.Monitorable, java.lang.Runnable
Enclosing class:
ExportDDLAction

public class ExportDDLAction.ConflictResolverProcess
extends ca.sqlpower.swingui.MonitorableWorker

The ConflictResolverProcess grabs a conflict resolver from the conflict finder process, checks if the user said to delete the conflicts, then asks it to remove the conflicting items while monitoring the progress.

Version:
$Id: ExportDDLAction.java 2416 2008-07-24 22:34:39Z kaiyi4 $
Author:
fuerth

Constructor Summary
ExportDDLAction.ConflictResolverProcess(javax.swing.JDialog d, ExportDDLAction.ConflictFinderProcess cfp, ArchitectSwingSession session)
           
 
Method Summary
 void cleanup()
          Displays error messages or invokes the next process in the chain on a new thread.
 void doStuff()
           
 java.lang.Integer getJobSize()
           
 java.lang.String getMessage()
           
 int getProgress()
           
 boolean hasStarted()
           
 boolean isFinished()
           
 
Methods inherited from class ca.sqlpower.swingui.SPSwingWorker
addTaskTerminationListener, getCleanupExceptionMessage, getDoStuffException, getNextProcess, isCanceled, isCancelled, kill, removeTaskTerminationListener, run, setCancelled, setCleanupExceptionMessage, setDoStuffException, setNextProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.sqlpower.util.Monitorable
isCancelled, setCancelled
 

Constructor Detail

ExportDDLAction.ConflictResolverProcess

public ExportDDLAction.ConflictResolverProcess(javax.swing.JDialog d,
                                               ExportDDLAction.ConflictFinderProcess cfp,
                                               ArchitectSwingSession session)
Parameters:
d - The dialog we anchor popup messages to
cfp - The conflict finder we extract the conflict list from
progressBar - The progress bar we show our progress in
progressLabel - The label where we say what we're doing
Method Detail

doStuff

public void doStuff()
Specified by:
doStuff in class ca.sqlpower.swingui.SPSwingWorker

cleanup

public void cleanup()
Displays error messages or invokes the next process in the chain on a new thread. The run method asks swing to invoke this method on the event dispatch thread after it's done.

Specified by:
cleanup in class ca.sqlpower.swingui.SPSwingWorker

getJobSize

public java.lang.Integer getJobSize()

getMessage

public java.lang.String getMessage()

getProgress

public int getProgress()

hasStarted

public boolean hasStarted()

isFinished

public boolean isFinished()


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca