Package edu.hawaii.ics.csdl.jupiter.model.review

Examples of edu.hawaii.ics.csdl.jupiter.model.review.ReviewerId


    List<edu.hawaii.ics.csdl.jupiter.file.property.Reviewers.Entry> reviewersList = reviewers
        .getEntry();
    for (edu.hawaii.ics.csdl.jupiter.file.property.Reviewers.Entry entry : reviewersList) {
      String reviewerId = entry.getId();
      String reviewerName = entry.getName();
      reviewerIdMap.put(reviewerId, new ReviewerId(reviewerId, reviewerName));
    }

    return reviewerIdMap;
  }
View Full Code Here


    ReviewModel.getInstance().notifyListeners(project);
    PropertyResource reviewIdResource = PropertyResource.getInstance(project, false);
    ReviewId reviewId = reviewIdResource.getReviewId(reviewIdName);
    log.debug("directory: " + ((reviewId != null) ? reviewId.getDirectory() : "null"));
    ReviewModel.getInstance().notifyListeners(reviewId);
    ReviewerId reviewerId = new ReviewerId(reviewerIdName, "");
    ReviewModel.getInstance().notifyListeners(reviewerId);
    return true;
  }
View Full Code Here

      entry = filterPhase.getFilterEntry(PropertyConstraints.ATTRIBUTE_VALUE_REVIEWER);
      if (entry != null && entry.isEnabled()) {
        String reviewer = entry.getValueKey();
        if (reviewer.equals(ReviewerId.AUTOMATIC_KEY)) {
          ReviewModel reviewModel = ReviewModel.getInstance();
          ReviewerId reviewerId = reviewModel.getReviewerIdManager().getReviewerId();
          reviewer = reviewerId.getReviewerId();
        }
        filter.setReviewerFilter(reviewer);
      }
      entry = filterPhase.getFilterEntry(PropertyConstraints.ATTRIBUTE_VALUE_TYPE);
      if (entry != null && entry.isEnabled()) {
        TypeKeyManager manager = TypeKeyManager.getInstance(project, reviewId);
        Type type = (Type) manager.getItemObject(entry.getValueKey());
        filter.setTypeFilter(type);
      }
      entry = filterPhase.getFilterEntry(PropertyConstraints.ATTRIBUTE_VALUE_SEVERITY);
      if (entry != null && entry.isEnabled()) {
        SeverityKeyManager manager = SeverityKeyManager.getInstance(project, reviewId);
        Severity severity = (Severity) manager.getItemObject(entry.getValueKey());
        filter.setSeverityFilter(severity);
      }
      entry = filterPhase.getFilterEntry(PropertyConstraints.ATTRIBUTE_VALUE_ASSIGNED_TO);
      if (entry != null && entry.isEnabled()) {
        String assignedTo = entry.getValueKey();
        if (assignedTo.equals(ReviewerId.AUTOMATIC_KEY)) {
          ReviewModel reviewMode = ReviewModel.getInstance();
          ReviewerId reviewerId = reviewMode.getReviewerIdManager().getReviewerId();
          assignedTo = reviewerId.getReviewerId();
        }
        filter.setAssignedToFilter(assignedTo);
      }
      entry = filterPhase.getFilterEntry(PropertyConstraints.ATTRIBUTE_VALUE_RESOLUTION);
      if (entry != null && entry.isEnabled()) {
View Full Code Here

    }
    // update review Id.
    reviewModel = ReviewModel.getInstance();
    project = reviewModel.getProjectManager().getProject();
    reviewId = reviewModel.getReviewIdManager().getReviewId();
    ReviewerId reviewerId = reviewModel.getReviewerIdManager().getReviewerId();
    // assertion review file should not be null.
    IFile iReviewFile = FileResource.getReviewFile(project, reviewId, reviewerId);
    if (iReviewFile == null) {
      String tkey = "ReviewDialog.noReviewFileDetermined.simpleConfirm.messageDialog.title";
      String title = ReviewI18n.getString(tkey);
View Full Code Here

    }
    // update review Id.
    reviewModel = ReviewModel.getInstance();
    project = reviewModel.getProjectManager().getProject();
    reviewId = reviewModel.getReviewIdManager().getReviewId();
    ReviewerId reviewerId = reviewModel.getReviewerIdManager().getReviewerId();
    // assertion review file should not be null.
    IFile iReviewFile = FileResource.getReviewFile(project, reviewId, reviewerId);
    if (iReviewFile == null) {
      String titleKey = "ReviewDialog.noReviewFileDetermined.simpleConfirm.messageDialog.title";
      String title = ReviewI18n.getString(titleKey);
View Full Code Here

   
    // Creates ReviewIssue instance, and fill it into editor view.
    ReviewModel reviewModel = ReviewModel.getInstance();
    IProject project = reviewModel.getProjectManager().getProject();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
    ReviewerId reviewerId = reviewModel.getReviewerIdManager().getReviewerId();
    IFile iReviewFile = FileResource.getReviewFile(project, reviewId, reviewerId);
    if (iReviewFile == null) {
      String titleKey = "ReviewDialog.noReviewFileDetermined.simpleConfirm.messageDialog.title";
      String title = ReviewI18n.getString(titleKey);
      String messageKey = "ReviewDialog.noReviewFileDetermined.simpleConfirm.messageDialog.message";
      String message = ReviewI18n.getString(messageKey);
      ReviewDialog.openSimpleComfirmMessageDialog(title, message);
      log.debug(message);
      return;
    }
    // check file written permission
    if (iReviewFile.isReadOnly()) {
        String message = "Review file " + iReviewFile + " is readonly. Please make it writable to" +
                         " save your issues.";
        ReviewDialog.openSimpleComfirmMessageDialog("Review Management", message);
    }
   
    try {
      ReviewEditorView editorView = ReviewEditorView.bringViewToTop();
      editorView.setEnable(true);
     
      // you cannot just get the line number, verify that the active file is the same as the target file
      // TODO Is it ok to assume that just because the files match the line number should be used?
      // this may not be case if the file is active and the user right-clicked on it from the package manager
      String line = "";
      if (selectedFile != null && selectedFile.equals(FileResource.getActiveFile())) {
        line = getLineNumber();
      }
     
      if (!targetFilePath.equals("")) {
        ReviewIssue reviewIssue = new ReviewIssue(new Date(), new Date(),
          reviewerId.getReviewerId(), "", targetFilePath, line,
          (Type) TypeKeyManager.getInstance(project, reviewId).getItem(0),
          (Severity) SeverityKeyManager.getInstance(project, reviewId).getItem(0),
          "", this.selectedText, "", "",
          (Resolution) ResolutionKeyManager.getInstance(project, reviewId).getItem(0),
          (Status) StatusKeyManager.getInstance(project, reviewId).getItem(0),
View Full Code Here

   
    // update review Id.
    reviewModel = ReviewModel.getInstance();
    project = reviewModel.getProjectManager().getProject();
    reviewId = reviewModel.getReviewIdManager().getReviewId();
    ReviewerId reviewerId = reviewModel.getReviewerIdManager().getReviewerId();
    // assertion review file should not be null.
    IFile iReviewFile = FileResource.getReviewFile(project, reviewId, reviewerId);
    if (iReviewFile == null) {
      String titleKey = "ReviewDialog.noReviewFileDetermined.simpleConfirm.messageDialog.title";
      String title = ReviewI18n.getString(titleKey);
View Full Code Here

    dialog.open();
    if (dialog.getReturnCode() != InputDialog.OK) {
      return;
    }
    String reviewerId = dialog.getValue();
    ReviewerId reviewer = new ReviewerId(reviewerId, reviewerId);
    this.reviewers.put(reviewerId, reviewer);
    fillReviewerTable(true);
    updateAuthorCandidates(this.reviewers);
    getWizard().getContainer().updateButtons();
    setPageComplete(isTableNonEmpty());
View Full Code Here

          IProject project = reviewModel.getProjectManager().getProject();
          ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
          ReviewIssueModelManager reviewIssueModelManager = ReviewIssueModelManager.getInstance();
          ReviewIssueModel reviewIssueModel = reviewIssueModelManager.getCurrentModel();
          String reviewer = reviewIssue.getReviewer();
          ReviewerId reviewerId = new ReviewerId(reviewer, "");
         
          IFile iFile = FileResource.getReviewFile(project, reviewId, reviewerId);
          if (iFile == null) {
            String titleKey = "ReviewDialog.noReviewFileDetermined"
                              + ".simpleConfirm.messageDialog.title";
View Full Code Here

    dialog.open();
    if (dialog.getReturnCode() != InputDialog.OK) {
      return;
    }
    String reviewerId = dialog.getValue();
    ReviewerId reviewer = new ReviewerId(reviewerId, reviewerId);
    this.reviewers.put(reviewerId, reviewer);
    fillReviewerTable(true);
    updateAuthorCandidates(this.reviewers);
  }
View Full Code Here

TOP

Related Classes of edu.hawaii.ics.csdl.jupiter.model.review.ReviewerId

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.