org.eclipse.xtext.xtend2.ui.buildpath
Class XtendContainerWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.jdt.ui.wizards.NewElementWizardPage
              extended by org.eclipse.xtext.xtend2.ui.buildpath.XtendContainerWizardPage
All Implemented Interfaces:
org.eclipse.jdt.ui.wizards.IClasspathContainerPage, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class XtendContainerWizardPage
extends org.eclipse.jdt.ui.wizards.NewElementWizardPage
implements org.eclipse.jdt.ui.wizards.IClasspathContainerPage

Author:
Dennis Huebner - Initial contribution and API

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
XtendContainerWizardPage()
           
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the top level control for this dialog page under the given parent composite.
 boolean finish()
          Called when the classpath container wizard is closed by selecting the finish button.
 org.eclipse.jdt.core.IClasspathEntry getSelection()
          Returns the edited or created classpath container entry.
 void setSelection(org.eclipse.jdt.core.IClasspathEntry containerEntry)
          Sets the classpath container entry to be edited or null if a new entry should be created.
 
Methods inherited from class org.eclipse.jdt.ui.wizards.NewElementWizardPage
setVisible, updateStatus, updateStatus
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.wizard.IWizardPage
canFlipToNextPage, getName, getNextPage, getPreviousPage, getWizard, isPageComplete, setPreviousPage, setWizard
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 

Constructor Detail

XtendContainerWizardPage

public XtendContainerWizardPage()
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Description copied from interface: org.eclipse.jface.dialogs.IDialogPage
Creates the top level control for this dialog page under the given parent composite.

Implementors are responsible for ensuring that the created control can be accessed via getControl

Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage
Parameters:
parent - the parent composite

finish

public boolean finish()
Description copied from interface: org.eclipse.jdt.ui.wizards.IClasspathContainerPage
Called when the classpath container wizard is closed by selecting the finish button. Implementers typically override this method to store the page result (new/changed classpath entry returned in getSelection) into its model.

Specified by:
finish in interface org.eclipse.jdt.ui.wizards.IClasspathContainerPage
Returns:
if the operation was successful. Only when returned true, the wizard will close.

getSelection

public org.eclipse.jdt.core.IClasspathEntry getSelection()
Description copied from interface: org.eclipse.jdt.ui.wizards.IClasspathContainerPage
Returns the edited or created classpath container entry. This method may return null if no classpath container entry exists. The returned classpath entry is of kind IClasspathEntry.CPE_CONTAINER .

Specified by:
getSelection in interface org.eclipse.jdt.ui.wizards.IClasspathContainerPage
Returns:
the classpath entry edited or created on the page.

setSelection

public void setSelection(org.eclipse.jdt.core.IClasspathEntry containerEntry)
Description copied from interface: org.eclipse.jdt.ui.wizards.IClasspathContainerPage
Sets the classpath container entry to be edited or null if a new entry should be created.

Specified by:
setSelection in interface org.eclipse.jdt.ui.wizards.IClasspathContainerPage
Parameters:
containerEntry - the classpath entry to edit or null. If not null then the classpath entry must be of kind IClasspathEntry.CPE_CONTAINER