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, setNameChangedByUser
addLogFile, 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, toString
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, wait, wait, wait
checkConfiguration, createRunnerSettings, getBeforeRunTasks, getConfigurationEditor, getFactory, getId, getPresentableType, getProject, getRunnerSettingsEditor, getType, getUniqueID, hideDisabledExecutorButtons, isAllowRunningInParallel, restartSingleton, setAllowRunningInParallel, setBeforeRunTasks, setName
getSearchScope
isBuildBeforeLaunchAddedByDefault, isBuildProjectOnEmptyModuleList, isExcludeCompileBeforeLaunchOption
getIcon, getName, getState
suggestedName
protected 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()
RunConfigurationBase
getDefaultOptionsClass
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 RunConfiguration
readExternal
in class RunConfigurationBase<T>
InvalidDataException
public void writeExternal(Element element) throws WriteExternalException
writeExternal
in interface RunConfiguration
writeExternal
in class RunConfigurationBase<T>
WriteExternalException
protected final void syncModuleName()
public ModuleBasedConfiguration clone()
RunConfiguration
clone
in interface RunConfiguration
clone
in class RunConfigurationBase<T>
public Module [] getModules()
getModules
in interface RunProfileWithCompileBeforeLaunchOption
public void restoreOriginalModule(Module originalModule)
public static boolean canRestoreOriginalModule(Module originalModule, Module[] configModules)
public void onNewConfigurationCreated()
RunConfigurationBase
onNewConfigurationCreated
in interface ConfigurationCreationListener
onNewConfigurationCreated
in class RunConfigurationBase<T>
public boolean isModuleDirMacroSupported()