Package pt.treps.parser

Examples of pt.treps.parser.ProjectTask


      this.descriptionLabel.setText("<html>" + htmlString + "</html>");
      this.typeLabel.setText("(tarefa)");
    }

    if (shortHandCompletion.getItem().getObject() instanceof ProjectTask) {
      ProjectTask projectTask = (ProjectTask) shortHandCompletion.getItem().getObject();

      String htmlString = projectTask.getOutput();
      for (String matched : shortHandCompletion.getItem().getMatchedExpressions()) {
        //        System.out.println(matched);

        htmlString = StringUtil.replaceFirst(htmlString, matched, "<b>" + matched + "</b>");
      }
View Full Code Here


            this.setText("<html>" + htmlString + "</html>");

        }

        if (shortHandCompletion.getItem().getObject() instanceof ProjectTask) {
            ProjectTask projectTask = (ProjectTask) shortHandCompletion.getItem().getObject();

            String htmlString = projectTask.getOutput();
            for (String matched : shortHandCompletion.getItem().getMatchedExpressions()) {
                //        System.out.println(matched);

                htmlString = StringUtil.replaceFirst(htmlString, matched, "<b>" + matched + "</b>");
            }
View Full Code Here

    if (itemObj instanceof Task) {
      ((TimeCompletionProvider) this.provider).mainFrame.getComboBoxTasks().setSelectedItem(itemObj);
    }

    if (itemObj instanceof ProjectTask) {
      ProjectTask projectTask = (ProjectTask) itemObj;
      ((TimeCompletionProvider) this.provider).mainFrame.getComboBoxProjects().setSelectedItem(projectTask.getProject());
      ((TimeCompletionProvider) this.provider).mainFrame.getComboBoxTasks().setSelectedItem(projectTask.getTask());
    }
  }
View Full Code Here

    List<MatchableItem<ProjectTask>> items = new ArrayList<MatchableItem<ProjectTask>>();

    for (Project project : TReps.getProjects()) {
      for (Task task : project.getTasks()) {
        items.add(new MatchableItem<ProjectTask>(new ProjectTask(project, task), task.getId(), project.getLabel() + " - " + task.getLabel()));
      }
    }

    projectsTasksParser = new Parser<ProjectTask>(items);
    return cp;
View Full Code Here

TOP

Related Classes of pt.treps.parser.ProjectTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.