pl.edu.agh.cast.importer.wizard.strategy
Class AbstractStepByStepImportStrategy

java.lang.Object
  extended by pl.edu.agh.cast.importer.wizard.strategy.AbstractStepByStepImportStrategy
All Implemented Interfaces:
IImportWizardStrategy
Direct Known Subclasses:
CreateTemplateWizardStrategy, WithoutTemplateWizardStrategy

public abstract class AbstractStepByStepImportStrategy
extends Object
implements IImportWizardStrategy

Abstract class for ApplyTemplateWizardStrategy and WithoutTemplateWizardStrategy. Defines step by step import pages flow.

Author:
AGH CAST Team

Field Summary
protected  AbstractConversionRulesSelectionPage conversionRulesSelectionPage
          Conversion rules selection page.
protected  ImporterWizard importerWizard
          Importer wizard for this strategy.
protected static org.apache.log4j.Logger LOG
          The logger.
 
Constructor Summary
AbstractStepByStepImportStrategy()
           
 
Method Summary
 void addPages(org.eclipse.jface.wizard.Wizard wizard)
          Creates pages needed for this strategy and adds created pages to wizard.
 boolean canFinishWizard()
          Checks whether the wizard can finish the import process.
 AbstractImportWizardPage getNextPage(AbstractImportWizardPage current)
          Calculates which wizard page should be next, and returns reference to next page.
protected  boolean saveTemplate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pl.edu.agh.cast.importer.wizard.strategy.IImportWizardStrategy
performFinish
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG
The logger.


conversionRulesSelectionPage

protected AbstractConversionRulesSelectionPage conversionRulesSelectionPage
Conversion rules selection page.


importerWizard

protected ImporterWizard importerWizard
Importer wizard for this strategy.

Constructor Detail

AbstractStepByStepImportStrategy

public AbstractStepByStepImportStrategy()
Method Detail

getNextPage

public AbstractImportWizardPage getNextPage(AbstractImportWizardPage current)
Calculates which wizard page should be next, and returns reference to next page.

Specified by:
getNextPage in interface IImportWizardStrategy
Parameters:
current - current page
Returns:
next page
See Also:
#getNextPage(pl.edu.agh.cast.importer.wizard.page.AbstractImportWizardPage)

addPages

public void addPages(org.eclipse.jface.wizard.Wizard wizard)
Creates pages needed for this strategy and adds created pages to wizard.

Specified by:
addPages in interface IImportWizardStrategy
Parameters:
wizard - the wizard
See Also:
IImportWizardStrategy.addPages(org.eclipse.jface.wizard.Wizard)

canFinishWizard

public boolean canFinishWizard()
Checks whether the wizard can finish the import process.

Specified by:
canFinishWizard in interface IImportWizardStrategy
Returns:
true if the wizard could be finished, and false otherwise
See Also:
IImportWizardStrategy.canFinishWizard()

saveTemplate

protected boolean saveTemplate()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.