public abstract class BeforeRunTaskProvider<T extends BeforeRunTask>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<BeforeRunTaskProvider<BeforeRunTask>> |
EXTENSION_POINT_NAME |
Constructor and Description |
---|
BeforeRunTaskProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecuteTask(RunConfiguration configuration,
T task) |
Promise<java.lang.Boolean> |
configureTask(DataContext context,
RunConfiguration configuration,
T task) |
boolean |
configureTask(RunConfiguration runConfiguration,
T task)
Deprecated.
do not call directly, use
configureTask(DataContext, RunConfiguration, BeforeRunTask) instead |
abstract T |
createTask(RunConfiguration runConfiguration) |
abstract boolean |
executeTask(DataContext context,
RunConfiguration configuration,
ExecutionEnvironment environment,
T task) |
java.lang.String |
getDescription(T task) |
javax.swing.Icon |
getIcon() |
abstract Key<T> |
getId() |
abstract java.lang.String |
getName() |
static <T extends BeforeRunTask> |
getProvider(Project project,
Key<T> key) |
javax.swing.Icon |
getTaskIcon(T task) |
boolean |
isConfigurable() |
boolean |
isSingleton() |
public static final ExtensionPointName<BeforeRunTaskProvider<BeforeRunTask>> EXTENSION_POINT_NAME
public abstract java.lang.String getName()
public javax.swing.Icon getIcon()
public java.lang.String getDescription(T task)
public javax.swing.Icon getTaskIcon(T task)
public boolean isConfigurable()
public abstract T createTask(RunConfiguration runConfiguration)
@Deprecated public boolean configureTask(RunConfiguration runConfiguration, T task)
configureTask(DataContext, RunConfiguration, BeforeRunTask)
insteadtrue
if task configuration is changedpublic Promise<java.lang.Boolean> configureTask(DataContext context, RunConfiguration configuration, T task)
true
a promise returning true, if the task was changedpublic boolean canExecuteTask(RunConfiguration configuration, T task)
public abstract boolean executeTask(DataContext context, RunConfiguration configuration, ExecutionEnvironment environment, T task)
public boolean isSingleton()
true
if at most one task may be configuredpublic static <T extends BeforeRunTask> BeforeRunTaskProvider<T> getProvider(Project project, Key<T> key)