public class BaseLibraryWizardPage extends NewElementWizardPage implements IJsGlobalScopeContainerPage, IJsGlobalScopeContainerPageExtension, IJsGlobalScopeContainerPageExtension2
Constructor and Description |
---|
BaseLibraryWizardPage() |
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent) |
boolean |
finish()
Called when the classpath container wizard is closed by selecting
the finish button.
|
IIncludePathEntry[] |
getNewContainers()
Method
IJsGlobalScopeContainerPageExtension2.getNewContainers() is called instead of IJsGlobalScopeContainerPage.getSelection()
to get the newly added containers. |
IIncludePathEntry |
getSelection()
Returns the edited or created classpath container entry.
|
void |
initialize(IJavaScriptProject project,
IIncludePathEntry[] currentEntries)
Method
initialize() is called before IJsGlobalScopeContainerPage.setSelection
to give additional information about the context the classpath container entry is configured in. |
void |
setSelection(IIncludePathEntry containerEntry)
Sets the classpath container entry to be edited or
null
if a new entry should be created. |
setVisible, updateStatus, updateStatus
public boolean finish()
IJsGlobalScopeContainerPage
finish
in interface IJsGlobalScopeContainerPage
true
, the wizard will close.public IIncludePathEntry getSelection()
IJsGlobalScopeContainerPage
null
if no classpath container entry exists.
The returned classpath entry is of kind IIncludePathEntry.CPE_CONTAINER
.getSelection
in interface IJsGlobalScopeContainerPage
public void setSelection(IIncludePathEntry containerEntry)
IJsGlobalScopeContainerPage
null
if a new entry should be created.setSelection
in interface IJsGlobalScopeContainerPage
containerEntry
- the classpath entry to edit or null
.
If not null
then the classpath entry must be of
kind IIncludePathEntry.CPE_CONTAINER
public void createControl(Composite parent)
public void initialize(IJavaScriptProject project, IIncludePathEntry[] currentEntries)
IJsGlobalScopeContainerPageExtension
initialize()
is called before IJsGlobalScopeContainerPage.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 IJsGlobalScopeContainerPageExtension
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 IIncludePathEntry[] getNewContainers()
IJsGlobalScopeContainerPageExtension2
IJsGlobalScopeContainerPageExtension2.getNewContainers()
is called instead of IJsGlobalScopeContainerPage.getSelection()
to get the newly added containers. IJsGlobalScopeContainerPage.getSelection()
is still used
to get the edited elements.getNewContainers
in interface IJsGlobalScopeContainerPageExtension2
IIncludePathEntry.CPE_CONTAINER
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.