ch.sahits.codegen.ui.wizards
Class CodeGeneratorDelegateFactory

java.lang.Object
  extended by ArtefacteGeneratorDelegateFactory
      extended by ch.sahits.codegen.ui.wizards.CodeGeneratorDelegateFactory

public final class CodeGeneratorDelegateFactory
extends ArtefacteGeneratorDelegateFactory

This factory class produces the appropriate ICodeGeneratorDelegate instance for the passed data model

Since:
1.2.0
Author:
Andi Hotz

Constructor Summary
CodeGeneratorDelegateFactory()
           
 
Method Summary
 ICodeGeneratorDelegate getCodeGeneratorDelegate(IWorkbench workbench, org.eclipse.swt.widgets.Shell shell, ECodeGenerationWizard wizard)
          Factory method for the delegates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeGeneratorDelegateFactory

public CodeGeneratorDelegateFactory()
Method Detail

getCodeGeneratorDelegate

public ICodeGeneratorDelegate getCodeGeneratorDelegate(IWorkbench workbench,
                                                       org.eclipse.swt.widgets.Shell shell,
                                                       ECodeGenerationWizard wizard)
Factory method for the delegates. Retrieve the appropriate Delegate object based upon the ECodeGenerationWizard

Parameters:
workbench - current workbench
shell - referenced shell
wizard - flag indicating which instance of ICodeGeneratorDelegate to use
Returns:
Instance of ICodeGeneratorDelegate