Package de.uka.ipd.sdq.pcm.gmf.ui
Class NewPalladioTemplateWizardPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- de.uka.ipd.sdq.pcm.gmf.ui.NewPalladioTemplateWizardPage
-
- All Implemented Interfaces:
IDialogPage
,IMessageProvider
,ISelectionChangedListener
,IWizardPage
public class NewPalladioTemplateWizardPage extends WizardPage implements ISelectionChangedListener
The "New" wizard page allows setting the container for the new file as well as the file name. The page will only accept file name without the extension OR with the extension that matches the expected one (.repository).
-
-
Field Summary
Fields Modifier and Type Field Description protected TableViewer
wizardSelectionViewer
-
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
-
Constructor Summary
Constructors Constructor Description NewPalladioTemplateWizardPage(Set<PalladioTemplate> availableTemplates)
Constructor for SampleNewWizardPage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createControl(Composite parent)
void
createDescriptionIn(Composite composite)
Create the description box in the wizard.PalladioTemplate
getSelectedTemplate()
void
selectionChanged(SelectionChangedEvent event)
void
setDescriptionText(String text)
Set the description in the description area.-
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, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
-
-
-
-
Field Detail
-
wizardSelectionViewer
protected TableViewer wizardSelectionViewer
-
-
Constructor Detail
-
NewPalladioTemplateWizardPage
public NewPalladioTemplateWizardPage(Set<PalladioTemplate> availableTemplates)
Constructor for SampleNewWizardPage.- Parameters:
pageName
-
-
-
Method Detail
-
createControl
public void createControl(Composite parent)
- Specified by:
createControl
in interfaceIDialogPage
- See Also:
IDialogPage.createControl(Composite)
-
createDescriptionIn
public void createDescriptionIn(Composite composite)
Create the description box in the wizard.- Parameters:
composite
- The parent component to place in.
-
selectionChanged
public void selectionChanged(SelectionChangedEvent event)
- Specified by:
selectionChanged
in interfaceISelectionChangedListener
-
setDescriptionText
public void setDescriptionText(String text)
Set the description in the description area.- Parameters:
text
- The text to set.
-
getSelectedTemplate
public PalladioTemplate getSelectedTemplate()
- Returns:
- the selectedTemplate
-
-