mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add NotNull, default impl
This commit is contained in:
-10
@@ -61,21 +61,11 @@ public class CompileStepBeforeRunNoErrorCheck
|
||||
return CompileStepBeforeRun.shouldCreateTask(runConfiguration) ? new MakeBeforeRunTaskNoErrorCheck() : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean configureTask(@NotNull RunConfiguration runConfiguration, @NotNull MakeBeforeRunTaskNoErrorCheck task) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return ExecutionBundle.message("before.launch.compile.step.no.error.check");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canExecuteTask(@NotNull RunConfiguration configuration, @NotNull MakeBeforeRunTaskNoErrorCheck task) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean executeTask(DataContext context,
|
||||
RunConfiguration configuration,
|
||||
|
||||
@@ -63,15 +63,6 @@ public class MakeProjectStepBeforeRun extends BeforeRunTaskProvider<MakeProjectS
|
||||
return AllIcons.Actions.Compile;
|
||||
}
|
||||
|
||||
public boolean configureTask(@NotNull RunConfiguration runConfiguration, @NotNull MakeProjectBeforeRunTask task) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canExecuteTask(@NotNull RunConfiguration configuration, @NotNull MakeProjectBeforeRunTask task) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean executeTask(DataContext context, final RunConfiguration configuration, final ExecutionEnvironment env, MakeProjectBeforeRunTask task) {
|
||||
return CompileStepBeforeRun.doMake(myProject, configuration, env, false, true);
|
||||
}
|
||||
|
||||
+2
-2
@@ -94,10 +94,10 @@ public class UnknownBeforeRunTaskProvider extends BeforeRunTaskProvider<UnknownB
|
||||
element.removeContent();
|
||||
final List attributes = myConfig.getAttributes();
|
||||
for (Object attribute : attributes) {
|
||||
element.setAttribute((Attribute)((Attribute)attribute).clone());
|
||||
element.setAttribute(((Attribute)attribute).clone());
|
||||
}
|
||||
for (Object child : myConfig.getChildren()) {
|
||||
element.addContent((Element)((Element)child).clone());
|
||||
element.addContent(((Element)child).clone());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user