net.sourceforge.squirrel_sql.plugins.dbdiff.gui
Class AbstractSideBySideDiffPresentation

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.dbdiff.gui.AbstractDiffPresentation
      extended by net.sourceforge.squirrel_sql.plugins.dbdiff.gui.AbstractSideBySideDiffPresentation
All Implemented Interfaces:
IDiffPresentation
Direct Known Subclasses:
ExternalToolSideBySideDiffPresentation, JMeldDiffPresentation

public abstract class AbstractSideBySideDiffPresentation
extends AbstractDiffPresentation

Base class for all DiffPresentation implementations that display a comparison of the contents of two files side-by-side in some internal or external window.


Field Summary
protected  FileWrapperFactory fileWrapperFactory
          fileWrapperFactory that allows this class to avoid constructing File objects directly
protected  IOUtilities ioutils
          Utility class for working with I/O
 
Fields inherited from class net.sourceforge.squirrel_sql.plugins.dbdiff.gui.AbstractDiffPresentation
destSession, preferenceBean, sessionInfoProvider, sourceSession
 
Constructor Summary
AbstractSideBySideDiffPresentation()
           
 
Method Summary
 void execute()
          Execute the comparison.
protected abstract  void executeDiff(String script1Filename, String script2Filename)
          Sub-class implementations should override this method to provide the implementation for comparing the contents of the specified script filenames.
 void setDialectFactory(IDialectFactory dialectFactory)
           
 void setFileWrapperFactory(FileWrapperFactory fileWrapperFactory)
           
 void setIoutils(IOUtilities ioutils)
           
 
Methods inherited from class net.sourceforge.squirrel_sql.plugins.dbdiff.gui.AbstractDiffPresentation
setPreferenceBean, setSessionInfoProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileWrapperFactory

protected FileWrapperFactory fileWrapperFactory
fileWrapperFactory that allows this class to avoid constructing File objects directly


ioutils

protected IOUtilities ioutils
Utility class for working with I/O

Constructor Detail

AbstractSideBySideDiffPresentation

public AbstractSideBySideDiffPresentation()
Method Detail

executeDiff

protected abstract void executeDiff(String script1Filename,
                                    String script2Filename)
                             throws Exception
Sub-class implementations should override this method to provide the implementation for comparing the contents of the specified script filenames.

Parameters:
script1Filename - filename of the first script to compare.
script2Filename - filename of the second script to compare.
Throws:
Exception

execute

public void execute()
Description copied from interface: IDiffPresentation
Execute the comparison.

See Also:
IDiffPresentation.execute()

setFileWrapperFactory

public void setFileWrapperFactory(FileWrapperFactory fileWrapperFactory)
Parameters:
fileWrapperFactory - the fileWrapperFactory to set

setIoutils

public void setIoutils(IOUtilities ioutils)
Parameters:
ioutils - the ioutils to set

setDialectFactory

public void setDialectFactory(IDialectFactory dialectFactory)
Parameters:
dialectFactory - the dialectFactory to set


Copyright © 2001-2012. All Rights Reserved.