public class IzClasspathContainerPage extends WizardPage implements org.eclipse.jdt.ui.wizards.IClasspathContainerPage, org.eclipse.jdt.ui.wizards.IClasspathContainerPageExtension
Clients implementing this interface may also implement
IClasspathContainerPageExtension
to get additional context
before this page is opened.
Modifier and Type | Field and Description |
---|---|
static String |
ID
The page ID.
|
ERROR, INFORMATION, NONE, WARNING
Constructor and Description |
---|
IzClasspathContainerPage()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent)
Create contents of the wizard.
|
boolean |
finish()
Called when the classpath container wizard is closed by selecting
the finish button.
|
IClasspathEntry |
getSelection()
Returns the edited or created classpath container entry.
|
void |
initialize(IJavaProject project,
IClasspathEntry[] currentEntries)
Method
initialize() is called before IClasspathContainerPage.setSelection
to give additional information about the context the classpath container entry is configured in. |
void |
setSelection(IClasspathEntry containerEntry)
Sets the classpath container entry to be edited or
null
if a new entry should be created. |
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canFlipToNextPage, getName, getNextPage, getPreviousPage, getWizard, isPageComplete, setPreviousPage, setWizard
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
public static final String ID
public void initialize(IJavaProject project, IClasspathEntry[] currentEntries)
initialize()
is called before IClasspathContainerPage.setSelection
to give additional information about the context the classpath container entry is configured in. This information
only reflects the underlying dialogs current selection state. The user still can make changes after the
the classpath container pages has been closed or decide to cancel the operation.initialize
in interface org.eclipse.jdt.ui.wizards.IClasspathContainerPageExtension
project
- The project the new or modified entry is added to. The project does not have to exist.
Project can be null
.currentEntries
- The class path entries currently selected to be set as the projects classpath.
This can also include the entry to be edited.public void setSelection(IClasspathEntry containerEntry)
null
if a new entry should be created.setSelection
in interface org.eclipse.jdt.ui.wizards.IClasspathContainerPage
containerEntry
- The classpath entry to edit or null
.
If not null
then the classpath entry must be of
kind IClasspathEntry.CPE_CONTAINER
public IClasspathEntry getSelection()
null
if no classpath container entry exists.
The returned classpath entry is of kind IClasspathEntry.CPE_CONTAINER
.getSelection
in interface org.eclipse.jdt.ui.wizards.IClasspathContainerPage
public void createControl(Composite parent)
createControl
in interface IDialogPage
public boolean finish()
Implementers typically override this method to store the page result (new/changed classpath entry returned in getSelection) into its model. As this is not the case for iizi, nothing is done here bt to return true.
finish
in interface org.eclipse.jdt.ui.wizards.IClasspathContainerPage
true
, the wizard will close.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.