|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface PackageLoader.IAutoInstallTask
Interface describing the task of installing a specific package.
For details on the operation,
see PackageLoader.loadPackagesWithInstallTask(int, IAutoInstallTask).
PackageLoader.loadPackagesWithInstallTask(int, IAutoInstallTask)| Method Summary | |
|---|---|
boolean |
acceptPackage(Package pkg)
Called by the install task for every package available (new ones, updates as well as existing ones that don't have a potential update.) The method should return true if this is a package that should be installed. |
Package[] |
filterLoadedSource(SdkSource source,
Package[] packages)
Invoked by the loader once a source has been loaded and its package definitions are known. |
void |
setResult(boolean success,
java.util.Map<Package,java.io.File> installPaths)
Called when the accepted package has been installed, successfully or not. |
void |
taskCompleted()
Called when the task is done iterating and completed. |
| Method Detail |
|---|
Package[] filterLoadedSource(SdkSource source,
Package[] packages)
packages
array and can modify it if necessary.
The loader will call acceptPackage(Package) on all the packages returned.
source - The source of the packages. Null for the locally installed packages.packages - The packages found in the source.boolean acceptPackage(Package pkg)
Display.syncExec(Runnable)
or Display.asyncExec(Runnable).
void setResult(boolean success,
java.util.Map<Package,java.io.File> installPaths)
Display.syncExec(Runnable)
or Display.asyncExec(Runnable).
void taskCompleted()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||