Class AbstractUpdateLibraryWizardPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
com.e1c.g5.v8.dt.internal.library.ui.update.AbstractUpdateLibraryWizardPage
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.wizard.IWizardPage
- Direct Known Subclasses:
UpdateLibraryConfigurationWizardPage,UpdateLibraryExtensionWizardPage
public abstract class AbstractUpdateLibraryWizardPage
extends org.eclipse.jface.wizard.WizardPage
The wizard page to update a library acossiated with some project or to plug a library to a project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ILibraryRepositoryprotected final Collection<LibraryDescriptor>Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
ConstructorsConstructorDescriptionAbstractUpdateLibraryWizardPage(IDtProject dtProject, ILibraryRegistry libraryRegistry, ILibraryProjectManager libraryProjectManager, ILibraryRepository libraryRepository, IDistributionSupportManager distributionSupportManager, String pageName, String libraryExtension, String libraryRepositoryPage, String libraryFileNameHistory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(org.eclipse.swt.widgets.Composite parent) voiddispose()voidfinish()Tells that the parent wizard finishes.protected abstract Collection<LibraryDescriptor>Gets all registered libraries which can be used for project.Returns the selected library descriptor.Returns the selected library name.Returns the selected library path.protected abstract ConfigurationgetProjectConfiguration(IDtProject dtProject) 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, toStringMethods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisibleMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Field Details
-
projectLibraryDescriptions
-
libraryRepository
-
-
Constructor Details
-
AbstractUpdateLibraryWizardPage
public AbstractUpdateLibraryWizardPage(IDtProject dtProject, ILibraryRegistry libraryRegistry, ILibraryProjectManager libraryProjectManager, ILibraryRepository libraryRepository, IDistributionSupportManager distributionSupportManager, String pageName, String libraryExtension, String libraryRepositoryPage, String libraryFileNameHistory) Creates a new instance.- Parameters:
dtProject- the workspace dt project to update/plug the library for/to, cannot benulllibraryRegistry- the library registry, cannot benulllibraryProjectManager- the library project manager, cannot benulllibraryRepository- the library repository, cannot benulldistributionSupportManager- AIDistributionSupportManagerservice reference. Cannot benullpageName- the page name, cannot benulllibraryExtension- the available extension for the library file, cannot benulllibraryRepositoryPage- the library repositpry page id, cannot benulllibraryFileNameHistory- the name for the library file history, cannot benull
-
-
Method Details
-
finish
public void finish()Tells that the parent wizard finishes. -
getLibraryPath
Returns the selected library path.- Returns:
- the selected library path or
nullif the library path wasn't selected
-
getLibraryDescriptor
Returns the selected library descriptor.- Returns:
- the selected library descriptor or
nullif the library descriptor wasn't selected
-
getLibraryName
Returns the selected library name.- Returns:
- the selected library name, may be
nullif the library wasn't selected
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) -
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
disposein classorg.eclipse.jface.dialogs.DialogPage
-
getAllRegisteredLibraries
Gets all registered libraries which can be used for project.- Returns:
- registered libraries, never
null
-
getProjectConfiguration
-