Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.function.extension.impl
Class FactoryWizardDescriptor<T extends AbstractFunction<?>>

java.lang.Object
  extended by de.cs3d.util.eclipse.extension.AbstractObjectDefinition
      extended by de.cs3d.util.eclipse.extension.AbstractObjectFactory<FunctionWizardFactory>
          extended by eu.esdihumboldt.hale.ui.function.extension.impl.FactoryWizardDescriptor<T>
Type Parameters:
T - the function type
All Implemented Interfaces:
de.cs3d.util.eclipse.extension.ExtensionObjectDefinition, de.cs3d.util.eclipse.extension.ExtensionObjectFactory<FunctionWizardFactory>, de.cs3d.util.eclipse.extension.Prioritizable, FunctionWizardDescriptor<T>, FunctionWizardFactory, Comparable<de.cs3d.util.eclipse.extension.ExtensionObjectDefinition>

public class FactoryWizardDescriptor<T extends AbstractFunction<?>>
extends de.cs3d.util.eclipse.extension.AbstractObjectFactory<FunctionWizardFactory>
implements FunctionWizardDescriptor<T>

Function wizard descriptor based on a FunctionWizardFactory instance.

Author:
Simon Templer

Constructor Summary
FactoryWizardDescriptor(FunctionWizardFactory factory, T function)
          Create a function wizard descriptor based on the given factory.
 
Method Summary
 FunctionWizard createEditWizard(Cell cell)
          Creates a wizard for editing an existing cell.
 FunctionWizardFactory createExtensionObject()
           
 FunctionWizard createNewWizard(SchemaSelection schemaSelection)
          Creates a wizard for creating a new cell based on the given schema selection.
 void dispose(FunctionWizardFactory instance)
           
 String getDisplayName()
           
 T getFunction()
          Get the function definition
 String getFunctionId()
          Get the ID of the associated function
 URL getIconURL()
           
 String getIdentifier()
           
 String getTypeName()
           
 
Methods inherited from class de.cs3d.util.eclipse.extension.AbstractObjectFactory
allowConfigure, configure
 
Methods inherited from class de.cs3d.util.eclipse.extension.AbstractObjectDefinition
compareTo, equals, getPriority, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.cs3d.util.eclipse.extension.ExtensionObjectFactory
allowConfigure, configure
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

FactoryWizardDescriptor

public FactoryWizardDescriptor(FunctionWizardFactory factory,
                               T function)
Create a function wizard descriptor based on the given factory.

Parameters:
factory - the function wizard factory
function - the associated function
Method Detail

createExtensionObject

public FunctionWizardFactory createExtensionObject()
                                            throws Exception
Specified by:
createExtensionObject in interface de.cs3d.util.eclipse.extension.ExtensionObjectFactory<FunctionWizardFactory>
Throws:
Exception

dispose

public void dispose(FunctionWizardFactory instance)
Specified by:
dispose in interface de.cs3d.util.eclipse.extension.ExtensionObjectFactory<FunctionWizardFactory>

getIdentifier

public String getIdentifier()
Specified by:
getIdentifier in interface de.cs3d.util.eclipse.extension.ExtensionObjectDefinition

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface de.cs3d.util.eclipse.extension.ExtensionObjectDefinition

getTypeName

public String getTypeName()
Specified by:
getTypeName in interface de.cs3d.util.eclipse.extension.ExtensionObjectDefinition

createNewWizard

public FunctionWizard createNewWizard(SchemaSelection schemaSelection)
Description copied from interface: FunctionWizardFactory
Creates a wizard for creating a new cell based on the given schema selection.

Specified by:
createNewWizard in interface FunctionWizardFactory
Parameters:
schemaSelection - the schema selection or null if no pre-selection is available
Returns:
the new wizard instance

createEditWizard

public FunctionWizard createEditWizard(Cell cell)
Description copied from interface: FunctionWizardFactory
Creates a wizard for editing an existing cell.

Specified by:
createEditWizard in interface FunctionWizardFactory
Parameters:
cell - the cell to edit
Returns:
the new wizard instance

getFunctionId

public String getFunctionId()
Description copied from interface: FunctionWizardDescriptor
Get the ID of the associated function

Specified by:
getFunctionId in interface FunctionWizardDescriptor<T extends AbstractFunction<?>>
Returns:
the function ID

getFunction

public T getFunction()
Description copied from interface: FunctionWizardDescriptor
Get the function definition

Specified by:
getFunction in interface FunctionWizardDescriptor<T extends AbstractFunction<?>>
Returns:
the function definition

getIconURL

public URL getIconURL()
Specified by:
getIconURL in interface de.cs3d.util.eclipse.extension.ExtensionObjectDefinition
Overrides:
getIconURL in class de.cs3d.util.eclipse.extension.AbstractObjectFactory<FunctionWizardFactory>

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d