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

java.lang.Object
  extended by pl.edu.agh.cast.importer.wizard.strategy.UseTemplateWizardStrategy
All Implemented Interfaces:
IImportWizardStrategy

public class UseTemplateWizardStrategy
extends Object
implements IImportWizardStrategy

Use template wizard strategy.

Author:
AGH CAST Team

Constructor Summary
UseTemplateWizardStrategy()
           
 
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.
 boolean performFinish()
          Perform any special finish processing for this wizard strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UseTemplateWizardStrategy

public UseTemplateWizardStrategy()
Method Detail

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)

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)

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()

performFinish

public boolean performFinish()
Perform any special finish processing for this wizard strategy.

Specified by:
performFinish in interface IImportWizardStrategy
Returns:
true if finish code execution was successful
See Also:
IImportWizardStrategy.performFinish()


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