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

    Fields
    Modifier and Type
    Field
    Description
    protected final ILibraryRepository
     
    protected final Collection<LibraryDescriptor>
     

    Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

    ERROR, INFORMATION, NONE, WARNING
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractUpdateLibraryWizardPage(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 Type
    Method
    Description
    void
    createControl(org.eclipse.swt.widgets.Composite parent)
     
    void
     
    void
    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 Configuration
     

    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, 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

    getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible

    Methods inherited from interface org.eclipse.jface.wizard.IWizardPage

    getMinimumPageSize
  • Field Details

  • 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 be null
      libraryRegistry - the library registry, cannot be null
      libraryProjectManager - the library project manager, cannot be null
      libraryRepository - the library repository, cannot be null
      distributionSupportManager - A IDistributionSupportManager service reference. Cannot be null
      pageName - the page name, cannot be null
      libraryExtension - the available extension for the library file, cannot be null
      libraryRepositoryPage - the library repositpry page id, cannot be null
      libraryFileNameHistory - the name for the library file history, cannot be null
  • Method Details

    • finish

      public void finish()
      Tells that the parent wizard finishes.
    • getLibraryPath

      public Path getLibraryPath()
      Returns the selected library path.
      Returns:
      the selected library path or null if the library path wasn't selected
    • getLibraryDescriptor

      public LibraryDescriptor getLibraryDescriptor()
      Returns the selected library descriptor.
      Returns:
      the selected library descriptor or null if the library descriptor wasn't selected
    • getLibraryName

      public String getLibraryName()
      Returns the selected library name.
      Returns:
      the selected library name, may be null if the library wasn't selected
    • createControl

      public void createControl(org.eclipse.swt.widgets.Composite parent)
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.jface.dialogs.IDialogPage
      Overrides:
      dispose in class org.eclipse.jface.dialogs.DialogPage
    • getAllRegisteredLibraries

      protected abstract Collection<LibraryDescriptor> getAllRegisteredLibraries()
      Gets all registered libraries which can be used for project.
      Returns:
      registered libraries, never null
    • getProjectConfiguration

      protected abstract Configuration getProjectConfiguration(IDtProject dtProject)