Class PackageSelectorGUI

java.lang.Object
org.apache.uima.pear.tools.PackageSelectorGUI
All Implemented Interfaces:
InstallationController.PackageSelector

public class PackageSelectorGUI extends Object implements InstallationController.PackageSelector
The PackageSelectorGUI class provides simple Swing-based file dialog windows for selecting root directories of installed PEAR packages, as well as PEAR package files, which contain components that need to be installed.
  • Constructor Details

    • PackageSelectorGUI

      public PackageSelectorGUI()
      Default constructor.
  • Method Details

    • selectPackageDirectory

      public File selectPackageDirectory(String componentId)
      Opens dialog window to select root directory of desired installed component package.
      Specified by:
      selectPackageDirectory in interface InstallationController.PackageSelector
      Parameters:
      componentId - The given component ID.
      Returns:
      Selected package root directory or null, if the selection cancelled.
    • selectPackageFile

      public File selectPackageFile(String componentId)
      Opens dialog window to select desired PEAR package file for a given component.
      Specified by:
      selectPackageFile in interface InstallationController.PackageSelector
      Parameters:
      componentId - The given component ID.
      Returns:
      Selected PEAR package file for the given component, or null, if the selection cancelled.
    • selectPackageUrl

      public URL selectPackageUrl(String componentId)
      This method is not implemented. It always returns null.
      Specified by:
      selectPackageUrl in interface InstallationController.PackageSelector
      Parameters:
      componentId - The given component ID.
      Returns:
      The PEAR package URL for the given component or null, if no URL is entered.