Package com._1c.g5.v8.dt.ui.wizards
Class DtNewWizardPage<M extends org.eclipse.emf.ecore.EObject>
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
com._1c.g5.v8.dt.ui.wizards.DtNewWizardPage<M>
- All Implemented Interfaces:
IDtNewWizardPage<M>,org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.wizard.IWizardPage
- Direct Known Subclasses:
ConfigurationApplicationsWizardPage,ConfigurationInfobaseWizardPage,DtAefNewWizardPage
public abstract class DtNewWizardPage<M extends org.eclipse.emf.ecore.EObject>
extends org.eclipse.jface.wizard.WizardPage
implements IDtNewWizardPage<M>
Base class for all DT model-related wizard pages.
-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()Applies page changes to the context, called every time when the page is about to become hidden.voidcreateControl(org.eclipse.swt.widgets.Composite parent) voiddispose()voidfinish(org.eclipse.core.runtime.IProgressMonitor monitor) Finishes the page, called at the wizard work end.protected IDtNewWizardContext<M>Returns the DT wizard contenxt, provided by the owner DT wizard.protected org.eclipse.core.databinding.DataBindingContextReturns the wizard page databinding context.protected StringReturns help context id to bind help to.voidinitialize(IDtNewWizardContext<M> context) Initializes the page, called once at wizard creation.voidHandles the situation when the parent object of the wizard was changed.voidrefresh()Refreshes the page, called every time when the page is about to become visible.Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringMethods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisibleMethods inherited from interface com._1c.g5.v8.dt.ui.wizards.IDtNewWizardPage
createPageControlsMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
canFlipToNextPage, getMinimumPageSize, getName, getNextPage, getPreviousPage, getWizard, isPageComplete, setPreviousPage, setWizard
-
Constructor Details
-
DtNewWizardPage
Instantiates a new DT wizard page.- Parameters:
pageName- the page name, cannot benull
-
-
Method Details
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createControlin interfaceorg.eclipse.jface.dialogs.IDialogPage
-
initialize
Initializes the page, called once at wizard creation. Wizard context and page controls are already available at this time.Page may use the given wizard context to work with the creating model instance or to manage wizard state.
- Specified by:
initializein interfaceIDtNewWizardPage<M extends org.eclipse.emf.ecore.EObject>- Parameters:
context- the DT wizard context to use by the page, cannotnull
-
refresh
public void refresh()Refreshes the page, called every time when the page is about to become visible.- Specified by:
refreshin interfaceIDtNewWizardPage<M extends org.eclipse.emf.ecore.EObject>
-
apply
public void apply()Applies page changes to the context, called every time when the page is about to become hidden.- Specified by:
applyin interfaceIDtNewWizardPage<M extends org.eclipse.emf.ecore.EObject>
-
finish
public void finish(org.eclipse.core.runtime.IProgressMonitor monitor) Finishes the page, called at the wizard work end.- Specified by:
finishin interfaceIDtNewWizardPage<M extends org.eclipse.emf.ecore.EObject>- Parameters:
monitor- the monitor to report progress to, cannotnull
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
disposein classorg.eclipse.jface.dialogs.DialogPage
-
onParentChanged
public void onParentChanged()Description copied from interface:IDtNewWizardPageHandles the situation when the parent object of the wizard was changed.- Specified by:
onParentChangedin interfaceIDtNewWizardPage<M extends org.eclipse.emf.ecore.EObject>
-
getHelpContextId
Returns help context id to bind help to.- Returns:
- help context id or
nullif no help is needed
-
getDataBindingContext
protected org.eclipse.core.databinding.DataBindingContext getDataBindingContext()Returns the wizard page databinding context.- Returns:
- the wizard page data binding context, never
null
-
getContext
Returns the DT wizard contenxt, provided by the owner DT wizard.- Returns:
- the wizard context, never
null
-