|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.PleaseWaitRunnable
org.openstreetmap.josm.plugins.ReadLocalPluginInformationTask
public class ReadLocalPluginInformationTask
This is an asynchronous task for reading plugin information from the files
in the local plugin repositories.
It scans the files in the local plugins repository (see Preferences#getPluginsDirectory()
and extracts plugin information from three kind of files:
Field Summary | |
---|---|
private java.util.Map<java.lang.String,PluginInformation> |
availablePlugins
|
private boolean |
canceled
|
Fields inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable |
---|
progressMonitor |
Constructor Summary | |
---|---|
ReadLocalPluginInformationTask()
|
|
ReadLocalPluginInformationTask(ProgressMonitor monitor)
|
Method Summary | |
---|---|
protected void |
analyseInProcessPlugins()
|
protected void |
cancel()
User pressed cancel button. |
protected void |
filterOldPlugins()
|
protected void |
finish()
Finish up the data work. |
java.util.List<PluginInformation> |
getAvailablePlugins()
Replies information about available plugins detected by this task. |
boolean |
isCanceled()
Replies true if the task was canceled by the user |
protected void |
processJarFile(java.io.File f,
java.lang.String pluginName)
|
protected void |
processLocalPluginInformationFile(java.io.File file)
|
protected void |
realRun()
Called in the worker thread to do the actual work. |
protected void |
scanIconCacheFiles(ProgressMonitor monitor,
java.io.File pluginsDirectory)
|
protected void |
scanLocalPluginRepository(ProgressMonitor monitor,
java.io.File pluginsDirectory)
|
protected void |
scanPluginFiles(ProgressMonitor monitor,
java.io.File pluginsDirectory)
|
protected void |
scanSiteCacheFiles(ProgressMonitor monitor,
java.io.File pluginsDirectory)
|
Methods inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable |
---|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Map<java.lang.String,PluginInformation> availablePlugins
private boolean canceled
Constructor Detail |
---|
public ReadLocalPluginInformationTask()
public ReadLocalPluginInformationTask(ProgressMonitor monitor)
Method Detail |
---|
protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void processJarFile(java.io.File f, java.lang.String pluginName) throws PluginException
PluginException
protected void scanSiteCacheFiles(ProgressMonitor monitor, java.io.File pluginsDirectory)
protected void scanIconCacheFiles(ProgressMonitor monitor, java.io.File pluginsDirectory)
protected void scanPluginFiles(ProgressMonitor monitor, java.io.File pluginsDirectory)
protected void scanLocalPluginRepository(ProgressMonitor monitor, java.io.File pluginsDirectory)
protected void processLocalPluginInformationFile(java.io.File file) throws PluginListParseException
PluginListParseException
protected void analyseInProcessPlugins()
protected void filterOldPlugins()
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
org.xml.sax.SAXException
java.io.IOException
OsmTransferException
public java.util.List<PluginInformation> getAvailablePlugins()
public boolean isCanceled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |