public abstract class AbstractEditWizard<T>
extends org.eclipse.jface.wizard.Wizard
implements org.eclipse.ui.INewWizard, eu.etaxonomy.cdm.api.conversation.IConversationEnabled
Modifier and Type | Field and Description |
---|---|
protected CdmFormFactory |
formFactory |
Constructor and Description |
---|
AbstractEditWizard()
Constructor for AbstractNewEntityWizard.
|
Modifier and Type | Method and Description |
---|---|
eu.etaxonomy.cdm.api.conversation.ConversationHolder |
getConversationHolder()
getConversationHolder
|
T |
getEntity()
Getter for the field
entity . |
protected abstract java.lang.String |
getEntityName()
FIXME there might be a smarter way to do this,
|
void |
init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection) |
boolean |
performFinish() |
protected abstract void |
saveEntity()
Adds the entity to the current persistence context
|
void |
setEntity(T entity)
Setter for the field
entity . |
void |
update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap changeEvents) |
addPage, addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
protected CdmFormFactory formFactory
@Inject public AbstractEditWizard()
Constructor for AbstractNewEntityWizard.
T
- a T object.protected abstract java.lang.String getEntityName()
public boolean performFinish()
performFinish
in interface org.eclipse.jface.wizard.IWizard
performFinish
in class org.eclipse.jface.wizard.Wizard
public T getEntity()
Getter for the field entity
.
public void setEntity(T entity)
Setter for the field entity
.
entity
- a T object.protected abstract void saveEntity()
public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
init
in interface org.eclipse.ui.IWorkbenchWizard
public eu.etaxonomy.cdm.api.conversation.ConversationHolder getConversationHolder()
getConversationHolder
getConversationHolder
in interface eu.etaxonomy.cdm.api.conversation.IConversationEnabled
ConversationHolder
object.public void update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap changeEvents)
update
in interface eu.etaxonomy.cdm.persistence.hibernate.ICdmPostDataChangeObserver
Copyright © 2007-2018. All Rights Reserved.