public enum ContributionType extends Enum<ContributionType>
Modifier and Type | Method and Description |
---|---|
File |
createTempFolder() |
static ContributionType |
fromName(String s) |
String |
getPluralTitle() |
String |
getPropertiesName()
Get the name of the properties file for this type of contribution.
|
File |
getSketchbookFolder() |
String |
getTitle()
Get this type name as a purtied up, capitalized version.
|
boolean |
isTempFolderName(String name) |
File[] |
listCandidates(File folder)
Return a list of directories that have the necessary subfolder for this
contribution type.
|
File[] |
listTempFolders() |
String |
toString() |
static ContributionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContributionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContributionType LIBRARY
public static final ContributionType MODE
public static final ContributionType TOOL
public static final ContributionType EXAMPLES
public static ContributionType[] values()
for (ContributionType c : ContributionType.values()) System.out.println(c);
public static ContributionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<ContributionType>
public String getTitle()
public String getPluralTitle()
public String getPropertiesName()
public File createTempFolder() throws IOException
IOException
public File[] listTempFolders() throws IOException
IOException
public boolean isTempFolderName(String name)
public static ContributionType fromName(String s)
public File getSketchbookFolder()
public File[] listCandidates(File folder)