public class NewWorkPreparator extends Object implements INewObjectPreparator
Constructor and Description |
---|
NewWorkPreparator() |
Modifier and Type | Method and Description |
---|---|
void |
initializeObject(TextGridObject textGridObject)
This method is called after
INewObjectPreparator.setWizard(ITextGridWizard) , but
before the metadata page or the first content page is shown. |
boolean |
performFinish(TextGridObject textGridObject)
Does whatever should be done after finishing the dialog.
|
void |
setWizard(ITextGridWizard wizard)
Notifies this new object preparator of the wizard in which it runs.
|
public void setWizard(ITextGridWizard wizard)
INewObjectPreparator
setWizard
in interface INewObjectPreparator
public void initializeObject(TextGridObject textGridObject)
INewObjectPreparator
INewObjectPreparator.setWizard(ITextGridWizard)
, but
before the metadata page or the first content page is shown. It may be
used to initialize certain data in the object, e.g. that should be loaded
into the metadata page.initializeObject
in interface INewObjectPreparator
textGridObject
- The TextGridObject to create. This would typically be
new and contain just
project and content type.public boolean performFinish(TextGridObject textGridObject)
INewObjectPreparator
performFinish
in interface INewObjectPreparator
textGridObject
- The TextGridObject
as it has been set up by the
wizard.NewObjectWizard#defaultPerformFinish(),
{@link IWizard#performFinish()}