public interface LocalRepoLoader
RepoPackages that are installed locally.| Modifier and Type | Method and Description |
|---|---|
LocalPackage |
getPackage(java.lang.String pathId,
ProgressIndicator progress)
Gets a single package, specified by
String pathId, loading them if necessary. |
java.util.Map<java.lang.String,LocalPackage> |
getPackages(ProgressIndicator progress)
Gets our packages, loading them if necessary.
|
boolean |
needsUpdate(long lastLocalRefreshMs,
boolean deepCheck)
Checks whether it looks like we need to be reloaded.
|
@NonNull java.util.Map<java.lang.String,LocalPackage> getPackages(@NonNull ProgressIndicator progress)
progress - A ProgressIndicator used to show progress (unimplemented) and
logging.LocalPackage, containing all the packages found in
the given root.@NonNull LocalPackage getPackage(@NonNull java.lang.String pathId, @NonNull ProgressIndicator progress)
String pathId, loading them if necessary.
This doesn't affect the overall caching mechanism of this instance.
pathId - The path id that specifies this package. See DetailsTypes.progress - A ProgressIndicator used to show progress (unimplemented) and
logging.LocalPackage for pathId or null if the package was not found.boolean needsUpdate(long lastLocalRefreshMs,
boolean deepCheck)
lastLocalRefreshMs - The last time a load was donedeepCheck - How vigorously to check. If false, the check should be quite fast.
If true it should still be reasonably fast, but less so.true if a reload is needed, false otherwise.