Examples of ReviewModel


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

    ColumnData columnData = columnDataModel.get(columnNameKey);
    // set the resized column information into column data.
    if (columnData != null) {
      columnData.setColumnPixelData(new ColumnPixelData(width, resizable));
    }
    ReviewModel reviewModel = ReviewModel.getInstance();   
    String phaseNameKey = reviewModel.getPhaseManager().getPhaseNameKey();
    // store the modified column data model into config XML file.
    PrefResource.getInstance().storeColumnDataModel(phaseNameKey, columnDataModel);
  }
View Full Code Here

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

                else {
                  updateTitle();
                }
                              
                ReviewIssue changedReviewIssue = event.getReviewIssue();
                ReviewModel reviewModel = ReviewModel.getInstance();
                IProject project = reviewModel.getProjectManager().getProject();
//                if ((event.getEventType() & merge) != 0) {
//                  log.debug("merge mode...........");
//                  ReviewIssueModelManager manager = ReviewIssueModelManager.getInstance();
//                  ReviewIssueModel reviewIssueModel = manager.getCurrentModel();
//                  HashSet targetFileSet = new HashSet();
View Full Code Here

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

    typeLabel.setLayoutData(typeLabelData);
    FormData typeComboData = new FormData();
    typeComboData.left = new FormAttachment(typeLabel, 75, SWT.LEFT);
    typeComboData.right = new FormAttachment(50, 0);
    typeCombo.setLayoutData(typeComboData);
    ReviewModel reviewModel = ReviewModel.getInstance();
    IProject project = reviewModel.getProjectManager().getProject();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
    String[] typeItems = TypeKeyManager.getInstance(project, reviewId).getElements();
    typeCombo.setItems(typeItems);
    typeCombo.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent event) {
        int type = ReviewEvent.TYPE_FOCUS;
View Full Code Here

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

        ReviewPlugin.getInstance().notifyListeners(type, kind);
      }
      public void focusLost(FocusEvent event) {
      }    
    });
    ReviewModel reviewModel = ReviewModel.getInstance();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
    IProject project = reviewModel.getProjectManager().getProject();
    if (reviewId != null) {
      String reviewIdString = reviewId.getReviewId();
      PropertyResource reviewIdResource = PropertyResource.getInstance(project, false);
      String[] items = reviewIdResource.getReviewerIdNames(reviewIdString);
      assignedToCombo.setItems((items == null) ? new String[] {} : items);
      reviewModel = ReviewModel.getInstance();
      String reviewerId = reviewModel.getReviewerIdManager().getReviewerId().getReviewerId();
      assignedToCombo.setText(reviewerId);
    }
     
    Label resolutionLabel = new Label(parent, SWT.NONE);
    resolutionLabel.setText(ReviewI18n.getString("ReviewEditorView.label.resolution"));
View Full Code Here

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

    statusLabel.setLayoutData(statusLabelData);
    FormData statusComboData = new FormData();
    statusComboData.left = new FormAttachment(statusLabel, 75, SWT.LEFT);
    statusComboData.right = new FormAttachment(50, 0);
    statusCombo.setLayoutData(statusComboData);
    ReviewModel reviewModel = ReviewModel.getInstance();
    IProject project = reviewModel.getProjectManager().getProject();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
    String[] statusItems = StatusKeyManager.getInstance(project, reviewId).getElements();
    statusCombo.setItems(statusItems);
    statusCombo.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent event) {
        int type = ReviewEvent.TYPE_FOCUS;
View Full Code Here

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

   * @param reviewIssue the code review instance.
   */
  public void setReviewIssue(ReviewIssue reviewIssue) {
    if (!this.ancestor.isDisposed()) {
      this.reviewIssue = reviewIssue;
      ReviewModel reviewModel = ReviewModel.getInstance();
      IProject project = reviewModel.getProjectManager().getProject();
      ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
      TypeKeyManager typeKeyManager = TypeKeyManager.getInstance(project, reviewId);
      String localizedTypeText = typeKeyManager.getLocalizedLabel(reviewIssue.getType().getKey());
      this.typeCombo.select(typeCombo.indexOf(localizedTypeText));
      SeverityKeyManager severityKeyManager = SeverityKeyManager.getInstance(project, reviewId);
      String severityKey = reviewIssue.getSeverity().getKey();
View Full Code Here

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

  public ReviewIssue getReviewIssue() {
    if (this.reviewIssue == null) {
     return null;
    }
    try {
      ReviewModel reviewModel = ReviewModel.getInstance();
      IProject project = reviewModel.getProjectManager().getProject();
      ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
      TypeKeyManager typeKeyManager = TypeKeyManager.getInstance(project, reviewId);
      SeverityKeyManager severityKeyManager = SeverityKeyManager.getInstance(project, reviewId);
      ResolutionKeyManager resolutionKeyManager = ResolutionKeyManager.getInstance(project,
                                                                                   reviewId);
      StatusKeyManager statusKeyManager = StatusKeyManager.getInstance(project, reviewId);
View Full Code Here

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

   * Sets new empty <code>ReviewIssue</code> instance and set it to the editor view.
   * @param iReviewFile the <code>IFile</code> review file instance.
   * @throws ReviewException if <code>ReviewIssue</code> instance was not created.
   */
  public void setNewEmptyReviewIssue(IFile iReviewFile) throws ReviewException {
    ReviewModel reviewModel = ReviewModel.getInstance();
    IProject project = reviewModel.getProjectManager().getProject();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
    ReviewerId reviewerId = reviewModel.getReviewerIdManager().getReviewerId();
    ReviewIssue reviewIssue = new ReviewIssue(new Date(), new Date(), reviewerId.getReviewerId(),
        "", "", "", (Type) TypeKeyManager.getInstance(project, reviewId).getItem(0),
        (Severity) SeverityKeyManager.getInstance(project, reviewId).getItem(0), "", "", "", "",
        (Resolution) ResolutionKeyManager.getInstance(project, reviewId).getItem(0),
        (Status) StatusKeyManager.getInstance(project, reviewId).getItem(0), iReviewFile);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.