public class RunContentDescriptor extends java.lang.Object implements Disposable
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static Key<RunContentDescriptor> |
DESCRIPTOR_KEY |
Constructor and Description |
---|
RunContentDescriptor(ExecutionConsole executionConsole,
ProcessHandler processHandler,
javax.swing.JComponent component,
java.lang.String displayName) |
RunContentDescriptor(ExecutionConsole executionConsole,
ProcessHandler processHandler,
javax.swing.JComponent component,
java.lang.String displayName,
javax.swing.Icon icon) |
RunContentDescriptor(ExecutionConsole executionConsole,
ProcessHandler processHandler,
javax.swing.JComponent component,
java.lang.String displayName,
javax.swing.Icon icon,
java.lang.Runnable activationCallback) |
RunContentDescriptor(ExecutionConsole executionConsole,
ProcessHandler processHandler,
javax.swing.JComponent component,
java.lang.String displayName,
javax.swing.Icon icon,
java.lang.Runnable activationCallback,
AnAction [] restartActions) |
RunContentDescriptor(RunProfile profile,
ExecutionResult executionResult,
RunnerLayoutUi ui) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Usually not invoked directly, see class javadoc.
|
java.lang.Runnable |
getActivationCallback() |
Content |
getAttachedContent() |
javax.swing.JComponent |
getComponent() |
java.lang.String |
getContentToolWindowId() |
java.lang.String |
getDisplayName() |
ExecutionConsole |
getExecutionConsole() |
long |
getExecutionId() |
java.lang.String |
getHelpId() |
javax.swing.Icon |
getIcon()
Returns the icon to show in the Run or Debug toolwindow tab corresponding to this content.
|
Computable<javax.swing.JComponent> |
getPreferredFocusComputable() |
ProcessHandler |
getProcessHandler() |
AnAction [] |
getRestartActions() |
RunContentDescriptorReusePolicy |
getReusePolicy() |
RunnerLayoutUi |
getRunnerLayoutUi()
Returns the runner layout UI interface that can be used to manage the sub-tabs in this run/debug tab, if available.
|
boolean |
isActivateToolWindowWhenAdded() |
boolean |
isAutoFocusContent() |
boolean |
isContentReuseProhibited() |
boolean |
isHiddenContent()
return true if the content should not be shown by the
RunContentManager |
boolean |
isReuseToolWindowActivation() |
boolean |
isSelectContentWhenAdded() |
void |
setActivateToolWindowWhenAdded(boolean activateToolWindowWhenAdded) |
void |
setAttachedContent(Content content) |
void |
setAutoFocusContent(boolean autoFocusContent) |
void |
setContentToolWindowId(java.lang.String contentToolWindowId) |
void |
setExecutionId(long executionId) |
void |
setFocusComputable(Computable<javax.swing.JComponent> focusComputable) |
void |
setProcessHandler(ProcessHandler processHandler) |
void |
setReusePolicy(RunContentDescriptorReusePolicy reusePolicy) |
void |
setReuseToolWindowActivation(boolean reuseToolWindowActivation) |
void |
setRunnerLayoutUi(RunnerLayoutUi runnerLayoutUi)
Sets the RunnerLayoutUi instance used for managing tab contents.
|
void |
setSelectContentWhenAdded(boolean selectContentWhenAdded) |
java.lang.String |
toString() |
public static final Key<RunContentDescriptor> DESCRIPTOR_KEY
public RunContentDescriptor(ExecutionConsole executionConsole, ProcessHandler processHandler, javax.swing.JComponent component, java.lang.String displayName, javax.swing.Icon icon, java.lang.Runnable activationCallback)
public RunContentDescriptor(ExecutionConsole executionConsole, ProcessHandler processHandler, javax.swing.JComponent component, java.lang.String displayName, javax.swing.Icon icon, java.lang.Runnable activationCallback, AnAction [] restartActions)
public RunContentDescriptor(ExecutionConsole executionConsole, ProcessHandler processHandler, javax.swing.JComponent component, java.lang.String displayName, javax.swing.Icon icon)
public RunContentDescriptor(ExecutionConsole executionConsole, ProcessHandler processHandler, javax.swing.JComponent component, java.lang.String displayName)
public RunContentDescriptor(RunProfile profile, ExecutionResult executionResult, RunnerLayoutUi ui)
public java.lang.Runnable getActivationCallback()
public AnAction [] getRestartActions()
public ExecutionConsole getExecutionConsole()
public void dispose()
Disposable
dispose
in interface Disposable
public javax.swing.Icon getIcon()
public ProcessHandler getProcessHandler()
public void setProcessHandler(ProcessHandler processHandler)
public boolean isContentReuseProhibited()
public javax.swing.JComponent getComponent()
public java.lang.String getDisplayName()
public java.lang.String getHelpId()
public Content getAttachedContent()
public void setAttachedContent(Content content)
public java.lang.String getContentToolWindowId()
public void setContentToolWindowId(java.lang.String contentToolWindowId)
public boolean isActivateToolWindowWhenAdded()
public void setActivateToolWindowWhenAdded(boolean activateToolWindowWhenAdded)
public boolean isSelectContentWhenAdded()
public void setSelectContentWhenAdded(boolean selectContentWhenAdded)
public boolean isReuseToolWindowActivation()
public void setReuseToolWindowActivation(boolean reuseToolWindowActivation)
public long getExecutionId()
public void setExecutionId(long executionId)
public java.lang.String toString()
toString
in class java.lang.Object
public Computable<javax.swing.JComponent> getPreferredFocusComputable()
public void setFocusComputable(Computable<javax.swing.JComponent> focusComputable)
public boolean isAutoFocusContent()
public void setAutoFocusContent(boolean autoFocusContent)
public RunnerLayoutUi getRunnerLayoutUi()
public void setRunnerLayoutUi(RunnerLayoutUi runnerLayoutUi)
runnerLayoutUi
- the RunnerLayoutUi instance used for managing tab contents.getRunnerLayoutUi()
public boolean isHiddenContent()
RunContentManager
public RunContentDescriptorReusePolicy getReusePolicy()
public void setReusePolicy(RunContentDescriptorReusePolicy reusePolicy)