public abstract class ArchivedProjectTemplate extends java.lang.Object implements ProjectTemplate
Modifier and Type | Class and Description |
---|---|
static class |
ArchivedProjectTemplate.StreamProcessor<T> |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INPUT_DEFAULT |
static java.lang.String |
INPUT_FIELD |
protected java.lang.String |
myDisplayName |
static java.lang.String |
TEMPLATE |
EMPTY_ARRAY
Constructor and Description |
---|
ArchivedProjectTemplate(java.lang.String displayName,
java.lang.String category) |
Modifier and Type | Method and Description |
---|---|
protected static <T> T |
consumeZipStream(ArchivedProjectTemplate.StreamProcessor<T> consumer,
java.util.zip.ZipInputStream stream) |
ModuleBuilder |
createModuleBuilder() |
java.util.List<Artifact> |
getArtifacts() |
java.lang.String |
getCategory() |
java.util.List<java.lang.String> |
getFrameworks() |
javax.swing.Icon |
getIcon() |
java.util.List<WizardInputField<?>> |
getInputFields() |
protected abstract ModuleType<?> |
getModuleType() |
java.lang.String |
getName() |
void |
handleUnzippedDirectories(java.io.File dir,
java.util.List<? super java.io.File> filesToRefresh) |
void |
populateFromElement(Element element) |
abstract <T> T |
processStream(ArchivedProjectTemplate.StreamProcessor<T> consumer) |
void |
setArtifacts(java.util.List<Artifact> artifacts) |
void |
setFrameworks(java.util.List<java.lang.String> frameworks) |
ValidationInfo |
validateSettings() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
public static final java.lang.String INPUT_FIELD
public static final java.lang.String TEMPLATE
public static final java.lang.String INPUT_DEFAULT
protected final java.lang.String myDisplayName
public ArchivedProjectTemplate(java.lang.String displayName, java.lang.String category)
public java.lang.String getName()
getName
in interface ProjectTemplate
public javax.swing.Icon getIcon()
getIcon
in interface ProjectTemplate
protected abstract ModuleType<?> getModuleType()
public ModuleBuilder createModuleBuilder()
createModuleBuilder
in interface ProjectTemplate
public java.util.List<WizardInputField<?>> getInputFields()
public java.util.List<Artifact> getArtifacts()
public void setArtifacts(java.util.List<Artifact> artifacts)
public java.util.List<java.lang.String> getFrameworks()
public void setFrameworks(java.util.List<java.lang.String> frameworks)
public ValidationInfo validateSettings()
validateSettings
in interface ProjectTemplate
public void handleUnzippedDirectories(java.io.File dir, java.util.List<? super java.io.File> filesToRefresh) throws java.io.IOException
java.io.IOException
public abstract <T> T processStream(ArchivedProjectTemplate.StreamProcessor<T> consumer) throws java.io.IOException
java.io.IOException
public java.lang.String getCategory()
public void populateFromElement(Element element)
protected static <T> T consumeZipStream(ArchivedProjectTemplate.StreamProcessor<T> consumer, java.util.zip.ZipInputStream stream) throws java.io.IOException
java.io.IOException