de.cau.cs.kieler.kex.ui.wizards.importing
Class ImportExamplePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.ui.dialogs.WizardDataTransferPage
              extended by org.eclipse.ui.dialogs.WizardResourceImportPage
                  extended by de.cau.cs.kieler.kex.ui.wizards.importing.ImportExamplePage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage, Listener, IOverwriteQuery

public class ImportExamplePage
extends WizardResourceImportPage

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 red

Field Summary
 
Fields inherited from class org.eclipse.ui.dialogs.WizardResourceImportPage
selectedTypes, selectionGroup
 
Fields inherited from class org.eclipse.ui.dialogs.WizardDataTransferPage
COMBO_HISTORY_LENGTH, SIZING_TEXT_FIELD_WIDTH
 
Fields inherited from interface org.eclipse.ui.dialogs.IOverwriteQuery
ALL, CANCEL, NO, NO_ALL, YES
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
protected ImportExamplePage(String name, IStructuredSelection selection)
          The constructor will be called with following parameters.
 
Method Summary
 void createControl(Composite parent)
           
protected  void createOptionsGroup(Composite parent)
           
protected  void createSourceGroup(Composite parent)
           
protected  boolean determinePageCompletion()
           
 List<Example> getCheckedExamples()
          filters checked examples from example tree.
 Text getExampleDescription()
          getter for example description field.
protected  ITreeContentProvider getFileProvider()
           
protected  ITreeContentProvider getFolderProvider()
           
 IPath getResourcePath()
          getter for resource path.
 
Methods inherited from class org.eclipse.ui.dialogs.WizardResourceImportPage
allowNewContainerName, createDestinationGroup, createFileSelectionGroup, getContainerFullPath, getErrorDialogTitle, getSelectedResources, getSelectedResources, getSourceConflictMessage, getSpecifiedContainer, getTypesToImport, handleContainerBrowseButtonPressed, handleEvent, handleTypesEditButtonPressed, initialPopulateContainerField, setAllSelections, setContainerFieldValue, setupSelectionsBasedOnSelectedTypes, sourceConflictsWithDestination, updateSelections, updateWidgetEnablements, validateDestinationGroup
 
Methods inherited from class org.eclipse.ui.dialogs.WizardDataTransferPage
addToHistory, addToHistory, createBoldLabel, createOptionsGroupButtons, createPlainLabel, createSpacer, displayErrorDialog, displayErrorDialog, getPathFromText, queryForContainer, queryForContainer, queryOverwrite, queryYesNoQuestion, restoreWidgetValues, saveWidgetValues, updatePageCompletion, validateOptionsGroup, validateSourceGroup
 
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
 

Constructor Detail

ImportExamplePage

protected 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.
Method Detail

createControl

public void createControl(Composite parent)
Specified by:
createControl in interface IDialogPage
Overrides:
createControl in class WizardResourceImportPage

createOptionsGroup

protected void createOptionsGroup(Composite parent)
Overrides:
createOptionsGroup in class WizardDataTransferPage

createSourceGroup

protected void createSourceGroup(Composite parent)
Specified by:
createSourceGroup in class WizardResourceImportPage

getFileProvider

protected ITreeContentProvider getFileProvider()
Specified by:
getFileProvider in class WizardResourceImportPage

getFolderProvider

protected ITreeContentProvider getFolderProvider()
Specified by:
getFolderProvider in class WizardResourceImportPage

determinePageCompletion

protected boolean determinePageCompletion()
Overrides:
determinePageCompletion in class WizardResourceImportPage

getCheckedExamples

public List<Example> getCheckedExamples()
filters checked examples from example tree.

Returns:
list of examples.

getExampleDescription

public Text getExampleDescription()
getter for example description field. It is a browser.

Returns:
Text

getResourcePath

public IPath getResourcePath()
getter for resource path.

Overrides:
getResourcePath in class WizardResourceImportPage
Returns:
IPath