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

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


    GridData filterResolutionData = new GridData(GridData.FILL_HORIZONTAL);
    this.filterResolutionCombo.setLayoutData(filterResolutionData);
    ReviewModel reviewModel = ReviewModel.getInstance();
    IProject project = reviewModel.getProjectManager().getProject();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
    ResolutionKeyManager manager = ResolutionKeyManager.getInstance(project, reviewId);
    this.filterResolutionCombo.setItems(manager.getElements());
    String resolutionKey = this.store.getString(FILTER_RESOLUTION_COMBO_KEY);
    this.filterResolutionCombo.setText(ReviewI18n.getString(resolutionKey));
    filterResolutionField.setPropertyChangeListener(new IPropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent event) {
          boolean isResolutionEnabled = new Boolean(event.getNewValue().toString()).booleanValue();
View Full Code Here


    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);
    this.store.setValue(FILTER_RESOLUTION_COMBO_KEY, resolutionKeyManager.getKey(resolutionLabel));
    this.store.setValue(FILTER_ASSIGNED_TO_COMBO_KEY, assignedToLabel);
    this.store.setValue(FILTER_REVIEWER_COMBO_KEY, reviewerLabel);
    this.store.setValue(FILTER_FILE_COMBO_KEY, fileLabel);
  }
View Full Code Here

        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

      resolutionKey = resolutionText;
    }
    ReviewModel reviewModel = ReviewModel.getInstance();
    IProject project = reviewModel.getProjectManager().getProject();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
    ResolutionKeyManager manager = ResolutionKeyManager.getInstance(project, reviewId);
    int resolutionOrdinal = manager.getOrdinal(resolutionKey);
    return new Resolution(resolutionKey, resolutionOrdinal);
  }
View Full Code Here

        int statusOrdinal = statusKeyManager.getOrdinal(statusKey);
        filter.setStatusFilter(new Status(statusKey, statusOrdinal));
      }
      if (store.getBoolean(FilterPreferencePage.ENABLE_FILTER_RESOLUTION_STORE_KEY)) {
        String resolutionKey = store.getString(FilterPreferencePage.FILTER_RESOLUTION_COMBO_KEY);
        ResolutionKeyManager resolutionKeyManager = ResolutionKeyManager.getInstance(project,
                                                                                     reviewId);
        int resolutionOrdinal = resolutionKeyManager.getOrdinal(resolutionKey);
        filter.setResolutionFilter(new Resolution(resolutionKey, resolutionOrdinal));
      }
      if (store.getBoolean(FilterPreferencePage.ENABLE_FILTER_TYPE_STORE_KEY)) {
        String typeKey = store.getString(FilterPreferencePage.FILTER_TYPE_COMBO_KEY);
        TypeKeyManager typeKeyManager = TypeKeyManager.getInstance(project, reviewId);
View Full Code Here

        }
        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

    Label defaultResolutionLabel = new Label(composite, SWT.NONE);
    defaultResolutionLabel
        .setText(ReviewI18n.getString("ReviewIdEditDialog.label.resolution"));
    this.defaultResolutionCombo = new Combo(composite, SWT.READ_ONLY);
    defaultResolutionCombo.setData(defaultResolutionCombo);
    ResolutionKeyManager resolutionKeyManager = ResolutionKeyManager.getInstance(project,
        reviewId);
    defaultResolutionCombo.setItems(resolutionKeyManager.getElements());
    String resolutionName = PropertyConstraints.ATTRIBUTE_VALUE_RESOLUTION;
    String resolutionKey = (reviewResource != null) ? reviewResource
        .getDefaultField(resolutionName) : "";
    defaultResolutionCombo.setText(ReviewI18n.getString(resolutionKey));
    defaultResolutionCombo.addListener(SWT.Selection, new Listener() {
View Full Code Here

    PropertyResource reviewIdResource = PropertyResource.getInstance(project, false);
    String[] items = reviewIdResource.getReviewerIdNames(reviewId.getReviewId());
    this.assignedToCombo.setItems((items == null) ? new String[] {} : items);
    String author = ReviewModel.getInstance().getReviewIdManager().getReviewId().getAuthor();
    assignedToCombo.setText(author);
    ResolutionKeyManager resolutionKeyManager = ResolutionKeyManager.getInstance(project, reviewId);
    this.resolutionCombo.setItems(resolutionKeyManager.getElements());
    String resolutionName = PropertyConstraints.ATTRIBUTE_VALUE_RESOLUTION;
    String resolutionDefaultKey = (reviewResource != null)
                                   ? reviewResource.getDefaultField(resolutionName) : "";
    this.resolutionCombo.setText(ReviewI18n.getString(resolutionDefaultKey));
    this.statusCombo.setItems(StatusKeyManager.getInstance(project, reviewId).getElements());
View Full Code Here

        }
        else {
          this.assignedToCombo.setText(reviewIssue.getAssignedTo());
        }
      }
      ResolutionKeyManager resolutionKeyManager = ResolutionKeyManager.getInstance(project,
                                                                                   reviewId);
      String resolutionKey = reviewIssue.getResolution().getKey();
      String localizedResolutionText = resolutionKeyManager.getLocalizedLabel(resolutionKey);
      this.resolutionCombo.select(resolutionCombo.indexOf(localizedResolutionText));
      this.resolutionText.setText(localizedResolutionText);
      StatusKeyManager statusKeyManager = StatusKeyManager.getInstance(project, reviewId);
      String statusKey = reviewIssue.getStatus().getKey();
      String localizedStatusText = statusKeyManager.getLocalizedLabel(statusKey);
View Full Code Here

      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())),
            this.reviewIssue.getReviewIFile());
    }
    catch (ReviewException e) {
      e.printStackTrace();
View Full Code Here

TOP

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

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.