|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.pkg.PackageManager org.xnap.pkg.XNapPackageManager
public class XNapPackageManager
Field Summary | |
---|---|
static java.lang.String |
AVAILABLE_FILENAME
|
static java.lang.String |
SOURCES_FILENAME
|
static java.lang.String |
STATUS_FILENAME
|
Method Summary | |
---|---|
PackageInfo |
createFakePackage(java.io.File file)
|
void |
discover()
Adds installed packages and saves the list of packages to AVAILABLE_FILENAME . |
void |
discover(java.io.File path)
Adds all packages found in path and recursively in all sub directories. |
java.lang.String |
getDefaultSources()
Returns a list of urls. |
java.lang.String |
getDefaultSources(boolean includeUnstable)
|
static XNapPackageManager |
getInstance()
|
void |
initialize()
|
void |
update(ProgressMonitor monitor)
Updates the list of packages from the urls specified in SOURCES_FILENAME . |
void |
write()
Saves the list of packages. |
Methods inherited from class org.xnap.pkg.PackageManager |
---|
add, getConflicts, getDependencies, getPackage, getPackageCount, getProviders, markAllUnavailable, packages, read, read, read, read, remove, removeUnavailable, tailSet, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AVAILABLE_FILENAME
public static final java.lang.String SOURCES_FILENAME
public static final java.lang.String STATUS_FILENAME
Method Detail |
---|
public static XNapPackageManager getInstance()
public PackageInfo createFakePackage(java.io.File file)
public void discover()
AVAILABLE_FILENAME
.
public void discover(java.io.File path)
public java.lang.String getDefaultSources(boolean includeUnstable)
public java.lang.String getDefaultSources()
PackageManager
getDefaultSources
in class PackageManager
public void initialize()
public void update(ProgressMonitor monitor)
SOURCES_FILENAME
.
This method runs asynchronus. Make sure the package manager is not modified until monitor.done() is invoked.
public void write()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |