public class ExtensionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<org.sikuli.script.Extension> |
_extensions |
protected java.io.File |
_extListFile |
protected static ExtensionManager |
_instance |
protected static java.lang.String |
EXT_LIST_FILE |
Modifier | Constructor and Description |
---|---|
protected |
ExtensionManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
addExtension(java.lang.String name,
java.lang.String url,
java.lang.String version) |
protected org.sikuli.script.Extension |
find(java.lang.String name) |
static ExtensionManager |
getInstance() |
java.lang.String |
getUserExtPath()
returns the absolute path to the user's extension path
|
java.lang.String |
getVersion(java.lang.String name) |
boolean |
install(java.lang.String name,
java.lang.String url_,
java.lang.String version_)
install a Sikuli extension (.JAR)
|
boolean |
isInstalled(java.lang.String name) |
boolean |
isOutOfDate(java.lang.String name,
java.lang.String version) |
static java.lang.String |
normalisedVersion(java.lang.String version) |
static java.lang.String |
normalisedVersion(java.lang.String version,
java.lang.String sep,
int maxWidth) |
protected void |
readExtList() |
protected void |
updateExtList() |
protected static final java.lang.String EXT_LIST_FILE
protected static ExtensionManager _instance
protected java.io.File _extListFile
protected java.util.ArrayList<org.sikuli.script.Extension> _extensions
public static ExtensionManager getInstance()
protected void readExtList()
protected void updateExtList() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
protected org.sikuli.script.Extension find(java.lang.String name)
protected void addExtension(java.lang.String name, java.lang.String url, java.lang.String version)
public java.lang.String getVersion(java.lang.String name)
public boolean isOutOfDate(java.lang.String name, java.lang.String version)
public boolean isInstalled(java.lang.String name)
public boolean install(java.lang.String name, java.lang.String url_, java.lang.String version_)
public java.lang.String getUserExtPath()
public static java.lang.String normalisedVersion(java.lang.String version)
public static java.lang.String normalisedVersion(java.lang.String version, java.lang.String sep, int maxWidth)