public class ModeContribution extends LocalContribution
Contribution.Filter
DELETION_FLAG, RESTART_FLAG, UPDATE_FLAGGED
Constructor and Description |
---|
ModeContribution(Base base,
File folder,
String className) |
Modifier and Type | Method and Description |
---|---|
void |
clearClassLoader(Base base)
Method to close the ClassLoader so that the archives are no longer "locked"
and a mode can be removed without restart.
|
Mode |
getMode() |
ContributionType |
getType() |
String |
initLoader(Base base,
String className) |
static ModeContribution |
load(Base base,
File folder) |
static ModeContribution |
load(Base base,
File folder,
String searchName) |
getFolder, getId, getImports, getLatestVersion, initLoader, isInstalled
equals, getAuthorList, getBenignVersion, getLastUpdated, getMaxRevision, getMinRevision, getName, getParagraph, getPrettyVersion, getSentence, getTypeName, getUrl, getVersion, hashCode, isCompatible, isFoundation, loadProperties, loadProperties, setPrettyVersion
public ModeContribution(Base base, File folder, String className) throws Exception
base
- the base object that this will be tied tofolder
- location inside the sketchbook modes folder or contribclassName
- name of class and full package, or null to use defaultException
public static ModeContribution load(Base base, File folder)
public static ModeContribution load(Base base, File folder, String searchName)
public void clearClassLoader(Base base)
public Mode getMode()
public ContributionType getType()
getType
in class Contribution
public String initLoader(Base base, String className) throws Exception
Exception