public abstract class ModuleBasedConfiguration<ConfigurationModule extends RunConfigurationModule,T> extends LocatableConfigurationBase<T> implements java.lang.Cloneable, ModuleRunConfiguration
RunConfiguration.RestartSingletonResult| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
TO_CLONE_ELEMENT_NAME |
DATA_KEY| Constructor and Description |
|---|
ModuleBasedConfiguration(ConfigurationModule configurationModule,
ConfigurationFactory factory) |
ModuleBasedConfiguration(java.lang.String name,
ConfigurationModule configurationModule,
ConfigurationFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canRestoreOriginalModule(Module originalModule,
Module[] configModules) |
ModuleBasedConfiguration |
clone()
Clones the run configuration.
|
protected ModuleBasedConfiguration |
createInstance()
Deprecated.
method
ConfigurationFactory.createTemplateConfiguration(com.intellij.openapi.project.Project)
would be used instead to avoid wrong custom 'cloning' |
java.util.Collection<Module> |
getAllModules() |
ConfigurationModule |
getConfigurationModule() |
protected java.lang.Class<? extends ModuleBasedConfigurationOptions> |
getDefaultOptionsClass()
Do not override this method, it is intended to support old (not migrated to options class) run configurations.
|
Module [] |
getModules() |
protected ModuleBasedConfigurationOptions |
getOptions() |
T |
getState() |
abstract java.util.Collection<Module> |
getValidModules() |
boolean |
isModuleDirMacroSupported() |
void |
loadState(T state) |
void |
onNewConfigurationCreated()
Called when configuration created via UI (Add Configuration).
|
void |
readExternal(Element element) |
protected void |
readModule(Element element) |
void |
restoreOriginalModule(Module originalModule) |
void |
setModule(Module module) |
void |
setModuleName(java.lang.String moduleName) |
protected void |
syncModuleName() |
void |
writeExternal(Element element) |
protected void |
writeModule(Element element)
Deprecated.
Not required to be called anymore.
|
getActionName, isGeneratedName, setGeneratedName, setNameChangedByUseraddLogFile, addLogFile, addPredefinedLogFile, canRunOn, checkRunnerSettings, checkSettingsBeforeRun, collectOutputFromProcessHandler, createAdditionalTabComponents, customizeLogConsole, equals, excludeCompileBeforeLaunchOption, getAllLogFiles, getBeforeRunTasks, getFactory, getIcon, getLogFiles, getName, getOptionsClass, getOptionsForPredefinedLogFile, getOutputFilePath, getPredefinedLogFiles, getProject, hashCode, isAllowRunningInParallel, isNewSerializationUsed, isSaveOutputToFile, isShowConsoleOnStdErr, isShowConsoleOnStdOut, onConfigurationCopied, removeAllLogFiles, removeAllPredefinedLogFiles, setAllowRunningInParallel, setBeforeRunTasks, setFileOutputPath, setName, setOptionsFromConfigurationFile, setSaveOutputToFile, setShowConsoleOnStdErr, setShowConsoleOnStdOut, toStringchangeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapfinalize, getClass, notify, notifyAll, wait, wait, waitcheckConfiguration, createRunnerSettings, getBeforeRunTasks, getConfigurationEditor, getFactory, getId, getPresentableType, getProject, getRunnerSettingsEditor, getType, getUniqueID, hideDisabledExecutorButtons, isAllowRunningInParallel, restartSingleton, setAllowRunningInParallel, setBeforeRunTasks, setNamegetSearchScopeisBuildBeforeLaunchAddedByDefault, isBuildProjectOnEmptyModuleList, isExcludeCompileBeforeLaunchOptiongetIcon, getName, getStatesuggestedNameprotected static final java.lang.String TO_CLONE_ELEMENT_NAME
public ModuleBasedConfiguration(java.lang.String name,
ConfigurationModule configurationModule,
ConfigurationFactory factory)
public ModuleBasedConfiguration(ConfigurationModule configurationModule, ConfigurationFactory factory)
protected ModuleBasedConfigurationOptions getOptions()
getOptions in class LocatableConfigurationBase<T>protected java.lang.Class<? extends ModuleBasedConfigurationOptions> getDefaultOptionsClass()
RunConfigurationBasegetDefaultOptionsClass in class LocatableConfigurationBase<T>public abstract java.util.Collection<Module> getValidModules()
public ConfigurationModule getConfigurationModule()
public void setModule(Module module)
public void setModuleName(java.lang.String moduleName)
protected void readModule(Element element)
@Deprecated protected void writeModule(Element element)
public java.util.Collection<Module> getAllModules()
@Deprecated protected ModuleBasedConfiguration createInstance()
ConfigurationFactory.createTemplateConfiguration(com.intellij.openapi.project.Project)
would be used instead to avoid wrong custom 'cloning'public final T getState()
getState in class RunConfigurationBase<T>public void loadState(T state)
loadState in class RunConfigurationBase<T>public void readExternal(Element element)
throws InvalidDataException
readExternal in interface RunConfigurationreadExternal in class RunConfigurationBase<T>InvalidDataExceptionpublic void writeExternal(Element element)
throws WriteExternalException
writeExternal in interface RunConfigurationwriteExternal in class RunConfigurationBase<T>WriteExternalExceptionprotected final void syncModuleName()
public ModuleBasedConfiguration clone()
RunConfigurationclone in interface RunConfigurationclone in class RunConfigurationBase<T>public Module [] getModules()
getModules in interface RunProfileWithCompileBeforeLaunchOptionpublic void restoreOriginalModule(Module originalModule)
public static boolean canRestoreOriginalModule(Module originalModule, Module[] configModules)
public void onNewConfigurationCreated()
RunConfigurationBaseonNewConfigurationCreated in interface ConfigurationCreationListeneronNewConfigurationCreated in class RunConfigurationBase<T>public boolean isModuleDirMacroSupported()