Class SelectLocationPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- org.eclipse.emf.ecp.emf2web.ui.wizard.SelectLocationPage
-
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage
,org.eclipse.jface.dialogs.IMessageProvider
,org.eclipse.jface.wizard.IWizardPage
public class SelectLocationPage extends org.eclipse.jface.wizard.WizardPage
A page for a single generated file which's main purpose is to select a location for the file.- Author:
- Stefan Dirix
-
-
Constructor Summary
Constructors Constructor Description SelectLocationPage(GenerationInfo generationInfo)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createControl(org.eclipse.swt.widgets.Composite parent)
org.eclipse.core.databinding.DataBindingContext
getBindingContext()
Returns the bindingContext of this page.GenerationInfo
getGenerationInfo()
Returns the linkedGenerationInfo
.protected org.eclipse.core.databinding.DataBindingContext
initDataBindings()
Creates and initializes the used data bindings.protected void
setTitleAndDescription()
Sets title and description of this page according to theGenerationInfo
.void
setVisible(boolean visible)
boolean
wasAlreadyVisible()
Indicates if this page was already shown to the user.-
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, toString
-
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
-
-
-
-
Constructor Detail
-
SelectLocationPage
public SelectLocationPage(GenerationInfo generationInfo)
Constructor.- Parameters:
generationInfo
- TheGenerationInfo
for which this page is responsible.
-
-
Method Detail
-
setTitleAndDescription
protected void setTitleAndDescription()
Sets title and description of this page according to theGenerationInfo
.
-
getGenerationInfo
public GenerationInfo getGenerationInfo()
Returns the linkedGenerationInfo
.- Returns:
- The
GenerationInfo
.
-
getBindingContext
public org.eclipse.core.databinding.DataBindingContext getBindingContext()
Returns the bindingContext of this page.- Returns:
- The
DataBindingContext
.
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent)
-
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisible
in interfaceorg.eclipse.jface.dialogs.IDialogPage
- Overrides:
setVisible
in classorg.eclipse.jface.dialogs.DialogPage
- See Also:
DialogPage.setVisible(boolean)
-
wasAlreadyVisible
public boolean wasAlreadyVisible()
Indicates if this page was already shown to the user.- Returns:
true
if this page was already shown to the user,false
if this page was never shown to the user.
-
initDataBindings
protected org.eclipse.core.databinding.DataBindingContext initDataBindings()
Creates and initializes the used data bindings.- Returns:
- The initialized
DataBindingContext
.
-
-