Package com.iizigo.java.classpath
Class IzClasspathContainerPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
com.iizigo.java.classpath.IzClasspathContainerPage
- All Implemented Interfaces:
- org.eclipse.jdt.ui.wizards.IClasspathContainerPage,- org.eclipse.jdt.ui.wizards.IClasspathContainerPageExtension,- org.eclipse.jface.dialogs.IDialogPage,- org.eclipse.jface.dialogs.IMessageProvider,- org.eclipse.jface.wizard.IWizardPage
public class IzClasspathContainerPage extends org.eclipse.jface.wizard.WizardPage implements org.eclipse.jdt.ui.wizards.IClasspathContainerPage, org.eclipse.jdt.ui.wizards.IClasspathContainerPageExtension
The IIZI classpath container page allows the user to create a new or edit an existing classpath container entry.
Clients implementing this interface may also implement IClasspathContainerPageExtension to get additional context before this page is opened.
- Field SummaryFields- Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider- ERROR, INFORMATION, NONE, WARNING
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- void- createControl- (org.eclipse.swt.widgets.Composite parent) Create contents of the wizard.- boolean- finish()Called when the classpath container wizard is closed by selecting the finish button.- org.eclipse.jdt.core.IClasspathEntryReturns the edited or created classpath container entry.- void- initialize- (org.eclipse.jdt.core.IJavaProject project, org.eclipse.jdt.core.IClasspathEntry[] currentEntries) Method- initialize()is called before- IClasspathContainerPage.setSelectionto give additional information about the context the classpath container entry is configured in.- void- setSelection- (org.eclipse.jdt.core.IClasspathEntry containerEntry) Sets the classpath container entry to be edited or- nullif a new entry should be created.- 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, 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, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible- Methods inherited from interface org.eclipse.jface.wizard.IWizardPage- canFlipToNextPage, getName, getNextPage, getPreviousPage, getWizard, isPageComplete, setPreviousPage, setWizard
- Field Details- IDThe page ID.- See Also:
 
 
- Constructor Details- IzClasspathContainerPagepublic IzClasspathContainerPage()Constructor.
 
- Method Details- initializepublic void initialize- (org.eclipse.jdt.core.IJavaProject project, org.eclipse.jdt.core.IClasspathEntry[] currentEntries) Method- initialize()is called before- IClasspathContainerPage.setSelectionto 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.- Specified by:
- initializein interface- org.eclipse.jdt.ui.wizards.IClasspathContainerPageExtension
- Parameters:
- 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.
 
- setSelectionpublic void setSelection- (org.eclipse.jdt.core.IClasspathEntry containerEntry) Sets the classpath container entry to be edited or- nullif a new entry should be created.- Specified by:
- setSelectionin interface- org.eclipse.jdt.ui.wizards.IClasspathContainerPage
- Parameters:
- containerEntry- The classpath entry to edit or- null. If not- nullthen the classpath entry must be of kind- IClasspathEntry.CPE_CONTAINER
 
- getSelectionpublic org.eclipse.jdt.core.IClasspathEntry getSelection()Returns the edited or created classpath container entry. This method may return- nullif no classpath container entry exists. The returned classpath entry is of kind- IClasspathEntry.CPE_CONTAINER.- Specified by:
- getSelectionin interface- org.eclipse.jdt.ui.wizards.IClasspathContainerPage
- Returns:
- the classpath entry edited or created on the page.
 
- createControlpublic void createControl- (org.eclipse.swt.widgets.Composite parent) Create contents of the wizard.- Specified by:
- createControlin interface- org.eclipse.jface.dialogs.IDialogPage
 
- finishpublic boolean finish()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. As this is not the case for IIZI, nothing is done here but to return true. - Specified by:
- finishin interface- org.eclipse.jdt.ui.wizards.IClasspathContainerPage
- Returns:
- As the operation was successful. Only when returned true, the wizard will close.