de.cau.cs.kieler.kex.ui.wizards.importing
Class ImportExamplePage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
de.cau.cs.kieler.kex.ui.wizards.importing.ImportExamplePage
- All Implemented Interfaces:
- IDialogPage, IMessageProvider, IWizardPage
public class ImportExamplePage
- extends WizardPage
This class represents the import page of importwizard. It contains a tree which shows the
importable examples. Secondly there is a description and a preview picture field. The
WizardResourceImportPage
is extended because of getting a Workspace Directory Chooser.
- Rating

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 |
ImportExamplePage
public ImportExamplePage(String name,
IStructuredSelection selection)
- The constructor will be called with following parameters.
- Parameters:
name
- , the name of page, works as page title, too.selection
- , the selected resource will be set as default as import location.
createControl
public void createControl(Composite parent)
- Creates the control composite of the wizardpage. Devides the components of the page into
left(treeviewer) and right(previewpicture + description).
- Parameters:
parent
- , Composite
getCheckedExamples
public List<Example> getCheckedExamples()
- filters checked examples from example tree.
- Returns:
- list of examples.
getExampleDescField
public Text getExampleDescField()
- getter for example description field. It is a browser.
- Returns:
- Text