public void initAnswerPlaceholder(final TaskFile file, boolean isRestarted) { if (!isRestarted) { setInitialState(new MyInitialState(myOffset, length)); myStatus = file.getTask().getStatus(); } setTaskFile(file); }
public void initAnswerPlaceholder(final TaskFile file, boolean isRestarted) { setTaskFile(file); if (!isRestarted) { setInitialState(new MyInitialState(myOffset, myLength)); for (AnswerPlaceholderSubtaskInfo info : getSubtaskInfos().values()) { info.setStatus(file.getTask().getStatus()); } } }
public int getActiveSubtaskIndex() { if (myTaskFile == null || myTaskFile.getTask() == null) { return 0; } return myTaskFile.getTask().getActiveSubtaskIndex(); }