@Override protected Key<AntBeforeRunTask> getTaskID() { return AntBeforeRunTaskProvider.ID; }
@Override protected boolean isRunning(AntBeforeRunTask task) { return task.isRunningTarget(myTarget); }
@Override protected void update(AntBeforeRunTask task) { VirtualFile f = myTarget.getModel().getBuildFile().getVirtualFile(); task.setAntFileUrl(f != null ? f.getUrl() : null); task.setTargetName(f != null ? myTarget.getName() : null); }
@Override protected void clear(AntBeforeRunTask task) { task.setAntFileUrl(null); task.setTargetName(null); }