de.cau.cs.kieler.sim.kiem.automated.ui.ui
Class FileSelectionPage

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.WizardExportResourcesPage
                  extended by de.cau.cs.kieler.sim.kiem.automated.ui.ui.FileSelectionPage
All Implemented Interfaces:
EventListener, IDialogPage, IMessageProvider, IWizardPage, SelectionListener, org.eclipse.swt.internal.SWTEventListener, Listener, IOverwriteQuery

public class FileSelectionPage
extends WizardExportResourcesPage
implements SelectionListener

This page displays the current workspace and asks the user to select the execution and model files.

Rating proposed yellow
(2010-01-29)

Field Summary
 
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 FileSelectionPage()
          Creates a new FileSelectionPage with nothing selected.
protected FileSelectionPage(IStructuredSelection selection)
          Creates a new FileSelectionPage with an initial selection.
 
Method Summary
 boolean canFlipToNextPage()
          
protected  void createDestinationGroup(Composite parent)
          
protected  void createOptionsGroupButtons(Group parent)
          
 List<String> getAllSelectedFiles()
          Get all selected files as a list of OSStrings.
 List<IPath> getExecutionFiles()
          Getter for the executionFiles.
 List<IPath> getModelFiles()
          Getter for the modelFiles.
 void handleEvent(Event event)
          
 boolean isPageComplete()
          
 void widgetDefaultSelected(SelectionEvent e)
          
 void widgetSelected(SelectionEvent e)
          
 
Methods inherited from class org.eclipse.ui.dialogs.WizardExportResourcesPage
allowNewContainerName, createButton, createButtonsGroup, createControl, createResourcesGroup, ensureResourcesLocal, extractNonLocalResources, getErrorDialogTitle, getSelectedResources, getSelectedResourcesIterator, getTypesToExport, getWhiteCheckedResources, handleTypesEditButtonPressed, hasExportableExtension, internalSaveWidgetValues, queryResourceTypesToExport, restoreResourceSpecificationWidgetValues, saveDirtyEditors, saveWidgetValues, setupBasedOnInitialSelections, updateWidgetEnablements
 
Methods inherited from class org.eclipse.ui.dialogs.WizardDataTransferPage
addToHistory, addToHistory, createBoldLabel, createOptionsGroup, createPlainLabel, createSpacer, determinePageCompletion, displayErrorDialog, displayErrorDialog, getPathFromText, queryForContainer, queryForContainer, queryOverwrite, queryYesNoQuestion, restoreWidgetValues, updatePageCompletion, validateDestinationGroup, validateOptionsGroup, validateSourceGroup
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, 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

FileSelectionPage

protected FileSelectionPage()
Creates a new FileSelectionPage with nothing selected.


FileSelectionPage

protected FileSelectionPage(IStructuredSelection selection)
Creates a new FileSelectionPage with an initial selection.

Parameters:
selection - the initial selection
Method Detail

canFlipToNextPage

public boolean canFlipToNextPage()

Specified by:
canFlipToNextPage in interface IWizardPage
Overrides:
canFlipToNextPage in class WizardPage

isPageComplete

public boolean isPageComplete()

Specified by:
isPageComplete in interface IWizardPage
Overrides:
isPageComplete in class WizardPage

createDestinationGroup

protected void createDestinationGroup(Composite parent)

Specified by:
createDestinationGroup in class WizardExportResourcesPage

createOptionsGroupButtons

protected void createOptionsGroupButtons(Group parent)

Overrides:
createOptionsGroupButtons in class WizardDataTransferPage

handleEvent

public void handleEvent(Event event)

Specified by:
handleEvent in interface Listener

getAllSelectedFiles

public List<String> getAllSelectedFiles()
Get all selected files as a list of OSStrings.

Returns:
the list of files

getExecutionFiles

public List<IPath> getExecutionFiles()
Getter for the executionFiles.

Returns:
the executionFiles

getModelFiles

public List<IPath> getModelFiles()
Getter for the modelFiles.

Returns:
the modelFiles

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)

Specified by:
widgetDefaultSelected in interface SelectionListener

widgetSelected

public void widgetSelected(SelectionEvent e)

Specified by:
widgetSelected in interface SelectionListener