public final class ExecutionTargetManagerImpl extends ExecutionTargetManager implements PersistentStateComponent<Element>
Modifier and Type | Field and Description |
---|---|
static ExecutionTarget |
MULTIPLE_TARGETS |
TOPIC
Constructor and Description |
---|
ExecutionTargetManagerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
boolean |
doCanRun(RunConfiguration configuration,
ExecutionTarget target) |
ExecutionTarget |
findTargetByIdFor(RunConfiguration configuration,
java.lang.String id) |
ExecutionTarget |
getActiveTarget() |
Element |
getState() |
java.util.List<ExecutionTarget> |
getTargetsFor(RunConfiguration configuration) |
void |
loadState(Element state)
This method is called when new component state is loaded.
|
void |
reset(RunManagerImpl runManager) |
void |
setActiveTarget(ExecutionTarget target) |
void |
setRunManager(RunManagerImpl runManager) |
void |
update() |
canRun, canRun, canRun, getActiveTarget, getInstance, getTargetsFor, getTargetsToChooseFor, setActiveTarget, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static final ExecutionTarget MULTIPLE_TARGETS
public ExecutionTargetManagerImpl(Project project)
public void setRunManager(RunManagerImpl runManager)
public Element getState()
getState
in interface PersistentStateComponent<Element>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(Element state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public ExecutionTarget getActiveTarget()
getActiveTarget
in class ExecutionTargetManager
public void setActiveTarget(ExecutionTarget target)
setActiveTarget
in class ExecutionTargetManager
public boolean doCanRun(RunConfiguration configuration, ExecutionTarget target)
doCanRun
in class ExecutionTargetManager
public java.util.List<ExecutionTarget> getTargetsFor(RunConfiguration configuration)
getTargetsFor
in class ExecutionTargetManager
public ExecutionTarget findTargetByIdFor(RunConfiguration configuration, java.lang.String id)
public void update()
update
in class ExecutionTargetManager
public void reset(RunManagerImpl runManager)