public abstract class ModelConverterWizard
extends Wizard
Modifier and Type | Class and Description |
---|---|
static class |
ModelConverterWizard.PageHelper |
Modifier and Type | Field and Description |
---|---|
protected ConverterUIUtil.DiagnosticHandler |
diagnosticHandler |
protected Diagnostic |
doPerformFinishDiagnostic |
protected ModelConverter |
modelConverter |
protected static ModelConverterWizard.PageHelper |
pageHelper |
protected IStructuredSelection |
selection |
protected IWorkbench |
workbench |
Constructor and Description |
---|
ModelConverterWizard() |
Modifier and Type | Method and Description |
---|---|
protected abstract ModelConverter |
createModelConverter() |
void |
dispose() |
protected Diagnostic |
doPerformFinish(Monitor monitor)
Subclasses should overwrite this method, adding the code that performs the
actions required when this wizard is "finished".
|
protected IFile |
getFile(IPath path) |
protected ModelConverter |
getModelConverter() |
IStructuredSelection |
getSelection() |
IWorkbench |
getWorkbench() |
protected void |
handleConvertDiagnostic(Diagnostic diagnostic) |
void |
init(IWorkbench workbench,
IStructuredSelection selection) |
protected void |
openEditor(IFile file) |
boolean |
performCancel() |
boolean |
performFinish() |
protected void |
selectFile(IFile file) |
void |
setContainer(IWizardContainer wizardContainer) |
protected static ModelConverterWizard.PageHelper pageHelper
protected IStructuredSelection selection
protected IWorkbench workbench
protected ModelConverter modelConverter
protected Diagnostic doPerformFinishDiagnostic
protected ConverterUIUtil.DiagnosticHandler diagnosticHandler
public void dispose()
protected abstract ModelConverter createModelConverter()
protected ModelConverter getModelConverter()
public void init(IWorkbench workbench, IStructuredSelection selection)
public IWorkbench getWorkbench()
public IStructuredSelection getSelection()
public void setContainer(IWizardContainer wizardContainer)
public boolean performCancel()
public boolean performFinish()
protected void handleConvertDiagnostic(Diagnostic diagnostic)
protected Diagnostic doPerformFinish(Monitor monitor) throws java.lang.Exception
Subclasses should overwrite this method, adding the code that performs the actions required when this wizard is "finished".
The Diagnostic
returned by this method should be used to provide
the user some information regarding a successful conversion. If the
conversion fails, an exception should be thrown.
monitor
- Diagnostic
java.lang.Exception
protected IFile getFile(IPath path)
protected void selectFile(IFile file)
protected void openEditor(IFile file) throws PartInitException
PartInitException