public class DeployToServerRunConfiguration<S extends ServerConfiguration,D extends DeploymentConfiguration> extends RunConfigurationBase<Element> implements LocatableConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
DeployToServerRunConfiguration.ConfigurationState |
RunConfiguration.RestartSingletonResult
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SETTINGS_ELEMENT |
DATA_KEY
Constructor and Description |
---|
DeployToServerRunConfiguration(Project project,
ConfigurationFactory factory,
java.lang.String name,
ServerType<S> serverType,
DeploymentConfigurator<D,S> deploymentConfigurator) |
Modifier and Type | Method and Description |
---|---|
void |
checkConfiguration()
Checks whether the run configuration settings are valid.
|
RunConfiguration |
clone()
Clones the run configuration.
|
SettingsEditor<DeployToServerRunConfiguration> |
getConfigurationEditor()
Returns the UI control for editing the run configuration settings.
|
D |
getDeploymentConfiguration() |
DeploymentSource |
getDeploymentSource() |
java.lang.String |
getServerName() |
ServerType<S> |
getServerType() |
RunProfileState |
getState(Executor executor,
ExecutionEnvironment env)
Prepares for executing a specific instance of the run configuration.
|
boolean |
isGeneratedName()
Checks if the current name for the run configuration was automatically generated.
|
void |
onNewConfigurationCreated()
Called when configuration created via UI (Add Configuration).
|
void |
readExternal(Element element) |
void |
setDeploymentConfiguration(D deploymentConfiguration) |
void |
setDeploymentSource(DeploymentSource deploymentSource) |
void |
setServerName(java.lang.String serverName) |
java.lang.String |
suggestedName()
Returns the default name for the run configuration based on its settings (such as the name of class or file to run).
|
void |
writeExternal(Element element) |
addLogFile, addLogFile, addPredefinedLogFile, canRunOn, checkRunnerSettings, checkSettingsBeforeRun, collectOutputFromProcessHandler, createAdditionalTabComponents, customizeLogConsole, equals, excludeCompileBeforeLaunchOption, getAllLogFiles, getBeforeRunTasks, getDefaultOptionsClass, getFactory, getIcon, getLogFiles, getName, getOptions, getOptionsClass, getOptionsForPredefinedLogFile, getOutputFilePath, getPredefinedLogFiles, getProject, getState, hashCode, isAllowRunningInParallel, isNewSerializationUsed, isSaveOutputToFile, isShowConsoleOnStdErr, isShowConsoleOnStdOut, loadState, 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
createRunnerSettings, getBeforeRunTasks, getFactory, getId, getPresentableType, getProject, getRunnerSettingsEditor, getType, getUniqueID, hideDisabledExecutorButtons, isAllowRunningInParallel, restartSingleton, setAllowRunningInParallel, setBeforeRunTasks, setName
getIcon, getName
public static final java.lang.String SETTINGS_ELEMENT
public DeployToServerRunConfiguration(Project project, ConfigurationFactory factory, java.lang.String name, ServerType<S> serverType, DeploymentConfigurator<D,S> deploymentConfigurator)
public ServerType<S> getServerType()
public java.lang.String getServerName()
public SettingsEditor<DeployToServerRunConfiguration> getConfigurationEditor()
RunConfiguration
CheckableRunConfigurationEditor
. The returned object
can also implement SettingsEditorGroup
if the settings it provides need to be displayed in
multiple tabs.getConfigurationEditor
in interface RunConfiguration
public RunProfileState getState(Executor executor, ExecutionEnvironment env) throws ExecutionException
RunProfile
getState
in interface RunProfile
executor
- the execution mode selected by the user (run, debug, profile etc.)env
- the environment object containing additional settings for executing the configuration.ExecutionException
public void checkConfiguration() throws RuntimeConfigurationException
RunConfiguration
checkConfiguration
in interface RunConfiguration
RuntimeConfigurationException
- if the configuration settings contain a non-fatal problem which the user should be warned about
but the execution should still be allowed.RuntimeConfigurationError
- if the configuration settings contain a fatal problem which makes it impossible
to execute the run configuration.public void setServerName(java.lang.String serverName)
public DeploymentSource getDeploymentSource()
public void setDeploymentSource(DeploymentSource deploymentSource)
public D getDeploymentConfiguration()
public void setDeploymentConfiguration(D deploymentConfiguration)
public boolean isGeneratedName()
LocatableConfiguration
isGeneratedName
in interface LocatableConfiguration
LocatableConfiguration.suggestedName()
, false if it was manually entered or changed by the user.public java.lang.String suggestedName()
LocatableConfiguration
suggestedName
in interface LocatableConfiguration
public void readExternal(Element element) throws InvalidDataException
readExternal
in interface RunConfiguration
readExternal
in class RunConfigurationBase<Element>
InvalidDataException
public void writeExternal(Element element) throws WriteExternalException
writeExternal
in interface RunConfiguration
writeExternal
in class RunConfigurationBase<Element>
WriteExternalException
public RunConfiguration clone()
RunConfiguration
clone
in interface RunConfiguration
clone
in class RunConfigurationBase<Element>
public void onNewConfigurationCreated()
RunConfigurationBase
onNewConfigurationCreated
in interface ConfigurationCreationListener
onNewConfigurationCreated
in class RunConfigurationBase<Element>