de.cau.cs.kieler.kex.ui.wizards.exporting
Class ExampleResourcesPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by de.cau.cs.kieler.kex.ui.wizards.exporting.ExampleResourcesPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage

public class ExampleResourcesPage
extends WizardPage

The examples resource page manages the resources for an export.

Rating red

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
protected ExampleResourcesPage(String pageName, IStructuredSelection selection)
          Constructor of ExampleResourcesPage.
 
Method Summary
 void buildResourceStructure()
          builds the resource structure out of the choosen komponents of the resource tree.
 void createControl(Composite parent)
          Creates a new composite and adds it to parent composite.
protected  void createResourcesGroup(Composite parent)
          Converts the projects of workspace to input elements for ResourceTreeAndListGroup and initializes that.
 List<IFile> getExportedFiles()
          Gives all files which are selected in the tree.
 List<IFolder> getExportedFolders()
          Gives all folders which are selected in the tree.
 List<ExportResource> getExportedResources()
          getter for exported resources.
 IPath getHeadFile()
          getter for head file.
 boolean isPageComplete()
           
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, 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

ExampleResourcesPage

protected ExampleResourcesPage(String pageName,
                               IStructuredSelection selection)
Constructor of ExampleResourcesPage.

Parameters:
pageName - , String
selection - , IStructuredSelection
Method Detail

createControl

public void createControl(Composite parent)
Creates a new composite and adds it to parent composite. Besides to that a group with resources and and composite with directopens will create.

Parameters:
parent - , Composite

createResourcesGroup

protected final void createResourcesGroup(Composite parent)
Converts the projects of workspace to input elements for ResourceTreeAndListGroup and initializes that.

Parameters:
parent - , Composite

getExportedFiles

public List<IFile> getExportedFiles()
Gives all files which are selected in the tree.

Returns:
List of IFiles

getExportedFolders

public List<IFolder> getExportedFolders()
Gives all folders which are selected in the tree.

Returns:
List of IFolders

getHeadFile

public IPath getHeadFile()
getter for head file.

Returns:
IPath

isPageComplete

public boolean isPageComplete()
Specified by:
isPageComplete in interface IWizardPage
Overrides:
isPageComplete in class WizardPage

buildResourceStructure

public void buildResourceStructure()
builds the resource structure out of the choosen komponents of the resource tree. The exportResources will be generated from the exported projects, exported directories and export files.


getExportedResources

public List<ExportResource> getExportedResources()
getter for exported resources.

Returns:
List of ExportResources