Package org.apache.uima.pear.tools
Class PackageSelectorGUI
java.lang.Object
org.apache.uima.pear.tools.PackageSelectorGUI
- All Implemented Interfaces:
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThePackageDirFilterclass allows filtering directories.static classThePackageFileFilterclass allows filtering PEAR package files. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselectPackageDirectory(String componentId) Opens dialog window to select root directory of desired installed component package.selectPackageFile(String componentId) Opens dialog window to select desired PEAR package file for a given component.selectPackageUrl(String componentId) This method is not implemented.
-
Constructor Details
-
PackageSelectorGUI
public PackageSelectorGUI()Default constructor.
-
-
Method Details
-
selectPackageDirectory
Opens dialog window to select root directory of desired installed component package.- Specified by:
selectPackageDirectoryin interfaceInstallationController.PackageSelector- Parameters:
componentId- The given component ID.- Returns:
- Selected package root directory or
null, if the selection cancelled.
-
selectPackageFile
Opens dialog window to select desired PEAR package file for a given component.- Specified by:
selectPackageFilein interfaceInstallationController.PackageSelector- Parameters:
componentId- The given component ID.- Returns:
- Selected PEAR package file for the given component, or
null, if the selection cancelled.
-
selectPackageUrl
This method is not implemented. It always returnsnull.- Specified by:
selectPackageUrlin interfaceInstallationController.PackageSelector- Parameters:
componentId- The given component ID.- Returns:
- The PEAR package URL for the given component or
null, if no URL is entered.
-