Пример #1
0
 public IterationLink setIteration(Iteration iteration) {
   // TODO this needs to link to the iteration page
   setTargetHistoryToken(
       new ProjectPlace.Tokenizer()
           .getToken(
               new ProjectPlace(
                   iteration.getProject().getOwner().getUsername(),
                   iteration.getProject().getSlug())));
   setText(iteration.getNumber() + "");
   return this;
 }
Пример #2
0
  public boolean isInProgress() {
    boolean result = false;

    if (isDefault()) {
      boolean defaultIsInProgress = true;
      Set<Iteration> iterations = project.getAvailableIterations();
      for (Iteration iteration : iterations) {
        if (!iteration.isDefault() && iteration.isInProgress()) {
          defaultIsInProgress = false;
        }
      }
      result = defaultIsInProgress;
    } else if ((committedOn != null) && (closedOn == null)) {
      result = true;
    }

    return result;
  }
Пример #3
0
 public IterationLink(Iteration iter) {
   super(iter.getNumber() + "");
   setIteration(iter);
 }