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

Examples of edu.hawaii.ics.csdl.jupiter.model.reviewissue.SeverityKeyManager


    GridData filterSeverityData = new GridData(GridData.FILL_HORIZONTAL);
    this.filterSeverityCombo.setLayoutData(filterSeverityData);
    ReviewModel reviewModel = ReviewModel.getInstance();
    IProject project = reviewModel.getProjectManager().getProject();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
    SeverityKeyManager mananger = SeverityKeyManager.getInstance(project, reviewId);
    this.filterSeverityCombo.setItems(mananger.getElements());
    String severityKey = this.store.getString(FILTER_SEVERITY_COMBO_KEY);
    this.filterSeverityCombo.setText(ReviewI18n.getString(severityKey));
    filterSeverityField.setPropertyChangeListener(new IPropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent event) {
          boolean isEnabled = new Boolean(event.getNewValue().toString()).booleanValue();
View Full Code Here


                                                 : "";
    ReviewModel reviewModel = ReviewModel.getInstance();
    IProject project = reviewModel.getProjectManager().getProject();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();;
    this.store.setValue(FILTER_INTERVAL_TEXT_KEY, interval + "");
    SeverityKeyManager severityKeyManager = SeverityKeyManager.getInstance(project, reviewId);
    this.store.setValue(FILTER_SEVERITY_COMBO_KEY, severityKeyManager.getKey(severityLabel));
    StatusKeyManager statusKeyManager = StatusKeyManager.getInstance(project, reviewId);
    this.store.setValue(FILTER_STATUS_COMBO_KEY, statusKeyManager.getKey(statusLabel));
    TypeKeyManager typeKeyManager = TypeKeyManager.getInstance(project, reviewId);
    this.store.setValue(FILTER_TYPE_COMBO_KEY, typeKeyManager.getKey(typeLabel));
    ResolutionKeyManager resolutionKeyManager = ResolutionKeyManager.getInstance(project, reviewId);
View Full Code Here

      severityKey = severityText;
    }
    ReviewModel reviewModel = ReviewModel.getInstance();
    IProject project = reviewModel.getProjectManager().getProject();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
    SeverityKeyManager manager = SeverityKeyManager.getInstance(project, reviewId);
    return new Severity(severityKey, manager.getOrdinal(severityKey));
  }
View Full Code Here

        TypeKeyManager manager = TypeKeyManager.getInstance(project, reviewId);
        return manager.getLocalizedLabel(reviewIssue.getType().getKey());
      }
      else if (columnNameKey.equals(ResourceBundleKey.COLUMN_HEADER_SEVERITY)) {
        String severityKey = reviewIssue.getSeverity().getKey();
        SeverityKeyManager manager = SeverityKeyManager.getInstance(project, reviewId);
        return manager.getLocalizedLabel(severityKey);
      }
      else if (columnNameKey.equals(ResourceBundleKey.COLUMN_HEADER_RESOLUTION)) {
        String resolutionKey = reviewIssue.getResolution().getKey();
        ResolutionKeyManager manager = ResolutionKeyManager.getInstance(project, reviewId);
        return manager.getLocalizedLabel(resolutionKey);
      }
      else if (columnNameKey.equals(ResourceBundleKey.COLUMN_HEADER_STATUS)) {
        StatusKeyManager manager = StatusKeyManager.getInstance(project, reviewId);
        return manager.getLocalizedLabel(reviewIssue.getStatus().getKey());
      }
      else if (columnNameKey.equals(ResourceBundleKey.COLUMN_HEADER_FILE)) {
        return reviewIssue.getTargetFile();
      }
      else if (columnNameKey.equals(ResourceBundleKey.COLUMN_HEADER_LINE)) {
View Full Code Here

      ReviewModel reviewModel = ReviewModel.getInstance();
      IProject project = reviewModel.getProjectManager().getProject();
      ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
      if (store.getBoolean(FilterPreferencePage.ENABLE_FILTER_SEVERITY_STORE_KEY)) {
        String severityKey = store.getString(FilterPreferencePage.FILTER_SEVERITY_COMBO_KEY);
        SeverityKeyManager severityKeyManager = SeverityKeyManager.getInstance(project, reviewId);
        int serverityOrdinal = severityKeyManager.getOrdinal(severityKey);
        filter.setSeverityFilter(new Severity(severityKey, serverityOrdinal));
      }
      if (store.getBoolean(FilterPreferencePage.ENABLE_FILTER_STATUS_STORE_KEY)) {
        String statusKey = store.getString(FilterPreferencePage.FILTER_STATUS_COMBO_KEY);
        StatusKeyManager statusKeyManager = StatusKeyManager.getInstance(project, reviewId);
View Full Code Here

        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()) {
        ResolutionKeyManager manager = ResolutionKeyManager.getInstance(project, reviewId);
        Resolution resolution = (Resolution) manager.getItemObject(entry.getValueKey());
        filter.setResolutionFilter(resolution);
      }
      entry = filterPhase.getFilterEntry(PropertyConstraints.ATTRIBUTE_VALUE_STATUS);
      if (entry != null && entry.isEnabled()) {
        StatusKeyManager manager = StatusKeyManager.getInstance(project, reviewId);
        Status status = (Status) manager.getItemObject(entry.getValueKey());
        filter.setStatusFilter(status);
      }
      entry = filterPhase.getFilterEntry(PropertyConstraints.ATTRIBUTE_VALUE_FILE);
      if (entry != null && entry.isEnabled()) {
        filter.setFileFilter(ReviewI18n.getString(entry.getValueKey()));
View Full Code Here

      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();
      String localizedSeverityText = severityKeyManager.getLocalizedLabel(severityKey);
      this.severityCombo.select(severityCombo.indexOf(localizedSeverityText));
      this.summaryText.setText(reviewIssue.getSummary());
      String description = reviewIssue.getDescription();
      this.descriptionText.setText(description);
      this.teamDescriptionText.setText(description);
View Full Code Here

    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);
      String resolutionKey = resolutionKeyManager.getKey(resolutionCombo.getText());
      String severityKey = severityKeyManager.getKey(severityCombo.getText());
      return new ReviewIssue(this.reviewIssue.getCreationDate(), new Date(),
            this.reviewIssue.getReviewer(), this.assignedToCombo.getText(),
            this.reviewIssue.getTargetFile(), this.reviewIssue.getLine(),
            (Type) typeKeyManager.getItemObject(typeKeyManager.getKey(typeCombo.getText())),
            (Severity) severityKeyManager.getItemObject(severityKey),
            this.summaryText.getText(),
            this.descriptionText.getText(), this.annotationText.getText(),
            this.revisionText.getText(),
            (Resolution) resolutionKeyManager.getItemObject(resolutionKey),
            (Status) statusKeyManager.getItemObject(statusKeyManager.getKey(statusCombo.getText())),
View Full Code Here

TOP

Related Classes of edu.hawaii.ics.csdl.jupiter.model.reviewissue.SeverityKeyManager

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.