public interface PackageOperation
| Modifier and Type | Interface and Description |
|---|---|
static class |
PackageOperation.InstallStatus
Statuses of in-progress operations.
|
static interface |
PackageOperation.StatusChangeListener
A listener that will be called when the
status of this installer
changes. |
static class |
PackageOperation.StatusChangeListenerException
Exception thrown by a
PackageOperation.StatusChangeListener. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
complete(ProgressIndicator progress)
Install/Uninstall the package.
|
PackageOperation.InstallStatus |
getInstallStatus()
Gets the current
PackageOperation.InstallStatus of this installer. |
java.io.File |
getLocation(ProgressIndicator progress)
The filesystem path affected by this operation.
|
java.lang.String |
getName()
Gets the name of this operation, suitable for using in user-facing messages.
|
RepoPackage |
getPackage()
The package (local or remote) that's being affected.
|
RepoManager |
getRepoManager()
Gets the
RepoManager for which we're installing/uninstalling a package. |
boolean |
prepare(ProgressIndicator progress)
Perform any preparatory work that can be done in the background prior to (un)installing a
package.
|
void |
registerStateChangeListener(PackageOperation.StatusChangeListener listener)
Registers a listener that will be called when the
PackageOperation.InstallStatus of this installer
changes. |
@NonNull RepoPackage getPackage()
@NonNull
java.io.File getLocation(@NonNull
ProgressIndicator progress)
boolean prepare(@NonNull
ProgressIndicator progress)
true if the preparation was successful, false otherwise.boolean complete(@NonNull
ProgressIndicator progress)
progress - A ProgressIndicator.true if the install/uninstall was successful, false otherwise.@NonNull RepoManager getRepoManager()
RepoManager for which we're installing/uninstalling a package.void registerStateChangeListener(@NonNull
PackageOperation.StatusChangeListener listener)
PackageOperation.InstallStatus of this installer
changes.@NonNull PackageOperation.InstallStatus getInstallStatus()
PackageOperation.InstallStatus of this installer.@NonNull java.lang.String getName()