Class IzClasspathContainerPage

All Implemented Interfaces:
IClasspathContainerPage, IClasspathContainerPageExtension, IDialogPage, IMessageProvider, IWizardPage

public class IzClasspathContainerPage extends WizardPage implements IClasspathContainerPage, 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 Details

  • Constructor Details

    • IzClasspathContainerPage

      public IzClasspathContainerPage()
      Constructor.
  • Method Details

    • initialize

      public 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. 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:
      initialize in interface 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.
    • setSelection

      public void setSelection(IClasspathEntry containerEntry)
      Sets the classpath container entry to be edited or null if a new entry should be created.
      Specified by:
      setSelection in interface IClasspathContainerPage
      Parameters:
      containerEntry - The classpath entry to edit or null. If not null then the classpath entry must be of kind IClasspathEntry.CPE_CONTAINER
    • getSelection

      public IClasspathEntry getSelection()
      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 IClasspathContainerPage
      Returns:
      the classpath entry edited or created on the page.
    • createControl

      public void createControl(Composite parent)
      Create contents of the wizard.
      Specified by:
      createControl in interface IDialogPage
    • finish

      public 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:
      finish in interface IClasspathContainerPage
      Returns:
      As the operation was successful. Only when returned true, the wizard will close.