public class ModeContribution extends LocalContribution
Contribution.FilterDELETION_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, isInstalledequals, getAuthorList, getBenignVersion, getLastUpdated, getMaxRevision, getMinRevision, getName, getParagraph, getPrettyVersion, getSentence, getTypeName, getUrl, getVersion, hashCode, isCompatible, isFoundation, loadProperties, loadProperties, setPrettyVersionpublic 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 defaultExceptionpublic 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 Contributionpublic String initLoader(Base base, String className) throws Exception
Exception