de.cau.cs.kieler.kaom.importer.ptolemy.wizards
Class ImportDiagramsWorkspaceSourcesPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by de.cau.cs.kieler.core.ui.wizards.ResourceTreeAndListPage
              extended by de.cau.cs.kieler.core.ui.wizards.WorkspaceResourcesPage
                  extended by de.cau.cs.kieler.kaom.importer.ptolemy.wizards.ImportDiagramsWorkspaceSourcesPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage

public class ImportDiagramsWorkspaceSourcesPage
extends WorkspaceResourcesPage

A wizard page to import files from the workspace.

Rating yellow
2010-03-14 reviewed by haf, msp, pkl

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ImportDiagramsWorkspaceSourcesPage(IStructuredSelection selection)
          Constructs a new instance.
 
Method Summary
 IWizardPage getNextPage()
          
 List<File> getSourceFiles(IProgressMonitor monitor)
          Returns the selected source files to import.
protected  void initializeControls()
          Called after the controls were created and the settings restored.
 void setWizard(IWizard newWizard)
          
 
Methods inherited from class de.cau.cs.kieler.core.ui.wizards.WorkspaceResourcesPage
applyNewTarget, createOptionsGroup, createSourceGroup, createTargetGroup, doBrowseTarget, doValidate, getResourceListFilters, getResources, getResourceTreeFilters, getTargetContainerPath, getWorkspaceSelection, restoreDialogSettings, saveDialogSettings
 
Methods inherited from class de.cau.cs.kieler.core.ui.wizards.ResourceTreeAndListPage
applyNewSource, createButtonBar, createControl, createDefaultSourceGroup, createDefaultTargetGroup, deselectAllListItems, doBrowseSource, getResourceListContentProvider, getResourceListLabelProvider, getResourceListViewerComparator, getResourceTreeContentProvider, getResourceTreeLabelProvider, getResourceTreeViewerComparator, getSelectedElements, getSourceGroupBrowseButton, getSourceGroupCombo, getTargetGroupBrowseButton, getTargetGroupCombo, isAnythingSelected, selectAllListItems, selectAndRevealElement, setResourceTreeInput, validate
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, 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

ImportDiagramsWorkspaceSourcesPage

public ImportDiagramsWorkspaceSourcesPage(IStructuredSelection selection)
Constructs a new instance.

Parameters:
selection - the selection the wizard was called on.
Method Detail

getSourceFiles

public List<File> getSourceFiles(IProgressMonitor monitor)
Returns the selected source files to import. This method may take a while to complete and shows its progress using a progress monitor.

Parameters:
monitor - progress monitor.
Returns:
list of selected source files.

initializeControls

protected void initializeControls()
Called after the controls were created and the settings restored. Subclasses may override and can use this method to do any initialization tasks that might be left, like preselecting resources. The default implementation does nothing.

Overrides:
initializeControls in class WorkspaceResourcesPage

setWizard

public void setWizard(IWizard newWizard)

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

getNextPage

public IWizardPage getNextPage()

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