Examples of PropertyResource


Examples of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

    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);
      filterAssignedToCombo.setItems((items == null) ? new String[] {} : items);
      IPreferenceStore store = ReviewPlugin.getInstance().getPreferenceStore();
    }
    if (filterAssignedToCombo.getItemCount() > 0) {
      String reviewerKey = this.store.getString(FILTER_ASSIGNED_TO_COMBO_KEY);
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

    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);
      filterReviewerCombo.setItems((items == null) ? new String[] {} : items);
      IPreferenceStore store = ReviewPlugin.getInstance().getPreferenceStore();
    }
    if (filterReviewerCombo.getItemCount() > 0) {
      String reviewerKey = this.store.getString(FILTER_REVIEWER_COMBO_KEY);
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

   * Performs finish processing for the wizard.
   * @see org.eclipse.jface.wizard.Wizard#performFinish()
   */
  public boolean performFinish() {
    Map<String, List<String>> categoryMap = new TreeMap<String, List<String>>();
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String defaultReviewID =  PropertyConstraints.DEFAULT_REVIEW_ID;
    ReviewResource reviewResource = propertyResource.getReviewResource(defaultReviewID, true);
    if (reviewResource != null) {
      Map<String, ReviewerId> reviewers = reviewerPage.getReviewers();
      String reviewIdString = reviewIdPage.getReviewId();
      String description = reviewIdPage.getDescription();
      String author = authorPage.getAuthor();
      String directory = storagePage.getDirectory();
      try {
        Date date = new Date();
        ReviewId reviewId = new ReviewId(reviewIdString, description, author,
                                         directory, reviewers, categoryMap, date);
        reviewResource.setReviewId(reviewId);
        reviewResource.setTargetFiles(filePage.getFiles());
        String typeKey = PropertyConstraints.ATTRIBUTE_VALUE_TYPE;
        reviewResource.setDefaultField(typeKey, defaultItemsPage.getDefaultTypeKey());
        String severityKey = PropertyConstraints.ATTRIBUTE_VALUE_SEVERITY;
        reviewResource.setDefaultField(severityKey, defaultItemsPage.getDefaultSeverityKey());
        String resolutionKey = PropertyConstraints.ATTRIBUTE_VALUE_RESOLUTION;
        reviewResource.setDefaultField(resolutionKey, defaultItemsPage.getDefaultResolutionKey());
        String statusKey = PropertyConstraints.ATTRIBUTE_VALUE_STATUS;
        reviewResource.setDefaultField(statusKey, defaultItemsPage.getDefaultStatusKey());
        reviewResource.setFieldItemMap(this.itemEntriesPage.getFieldItemIdFieldItemMap());
        reviewResource.setPhaseNameFilterPhaseMap(this.filterPage.getPhaseNameFilterPhaseMap());
        return propertyResource.addReviewResource(reviewResource);
      }
      catch (Exception e) {
        log.error(e);
        e.printStackTrace();
        MessageDialog.openInformation(workbench.getActiveWorkbenchWindow().getShell(),
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

    // for the next default reviewer in the selection page.
    store.setValue(ReviewIdSelectionWizard.REVIEWER_ID, reviewerIdName);
    // new structure 7/23/04
    IProject project = FileResource.getProject(projectName);
    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

Examples of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

  private Control createStorage(Composite composite) {
    Label storageLabel = new Label(composite, SWT.NONE);
    storageLabel.setText(ReviewI18n.getString("ReviewIdEditDialog.label.storage"));
    this.storageText = new Text(composite, SWT.BORDER);
    IProject project = FileResource.getProject(this.project);
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String defaultReviewId = PropertyConstraints.DEFAULT_REVIEW_ID;
    ReviewResource reviewResource = propertyResource.getReviewResource(defaultReviewId, true);
    if (reviewResource != null) {
      storageText.setText(reviewResource.getReviewId().getDirectory());
    }
   
    FormData storageLabelData = new FormData();
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

   * @param e the event.
   */
  private void handleProjectSelection(Event e) {
    String projectName = ((Combo) e.widget.getData()).getText();
    this.selectedProject = FileResource.getProject(projectName);
    PropertyResource reviewIdResource = PropertyResource.getInstance(this.selectedProject, false);
    this.reviewIdCombo.setItems(reviewIdResource.getReviewIdNames());
    reviewIdCombo.select(0);
    this.reviewId = reviewIdCombo.getItem(0);
    ReviewId reviewId = reviewIdResource.getReviewId(this.reviewId);
    this.reviewIdDescriptionText.setText(reviewId.getDescription());
    String[] items = reviewIdResource.getReviewerIdNames(this.reviewId);
    this.reviewerIdCombo.setItems(items);
    IPreferenceStore store = ReviewPlugin.getInstance().getPreferenceStore();
    String reviewerId = store.getString(ReviewIdSelectionWizard.REVIEWER_ID);
    int index = reviewerIdCombo.indexOf(reviewerId);
    reviewerIdCombo.select((index != -1) ? index : 0);
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

   * Handles the review id selection event.
   * @param e the event.
   */
  private void handleReviewIdSelection(Event e) {
    this.reviewId = ((Combo) e.widget.getData()).getText();
    PropertyResource reviewIdResource = PropertyResource.getInstance(this.selectedProject, false);
    this.reviewerIdCombo.setItems(reviewIdResource.getReviewerIdNames(reviewId));
    IPreferenceStore store = ReviewPlugin.getInstance().getPreferenceStore();
    String reviewerId = store.getString(ReviewIdSelectionWizard.REVIEWER_ID);
    int index = reviewerIdCombo.indexOf(reviewerId);
    reviewerIdCombo.select((index != -1) ? index : 0);
    ReviewId reviewId = reviewIdResource.getReviewId(this.reviewId);
    this.reviewIdDescriptionText.setText(reviewId.getDescription());
  }
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

   */
  private void createReviewIdSelectionContent(Composite parent) {
    Label reviewIdLabel = new Label(parent, SWT.NONE);
    reviewIdLabel.setText(ReviewI18n.getString("ReviewIdSelectionPage.label.reviewId"));
    this.reviewIdCombo = new Combo(parent, SWT.READ_ONLY);
    PropertyResource reviewIdResource = PropertyResource.getInstance(this.selectedProject, false);
    reviewIdCombo.setItems(reviewIdResource.getReviewIdNames());
    if (reviewIdCombo.getItemCount() > 0) {
      reviewIdCombo.select(0);
      this.reviewId = reviewIdCombo.getItem(0);
    }
    reviewIdCombo.setData(reviewIdCombo);
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

  private void craeteReviewIdDescriptionContent(Composite parent) {
    Label reviewIdDescriptionLabel = new Label(parent, SWT.NONE);
    String reviewIdDescriptionKey = "ReviewIdSelectionPage.label.reviewIdDescription";
    reviewIdDescriptionLabel.setText(ReviewI18n.getString(reviewIdDescriptionKey));
    this.reviewIdDescriptionText = new Text(parent, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
    PropertyResource reviewIdResource = PropertyResource.getInstance(this.selectedProject, false);
    ReviewId reviewId = reviewIdResource.getReviewId(this.reviewId);
    String reviewIdDescription = "";
    if (reviewId != null) {
      reviewIdDescription = reviewId.getDescription();
    }
    reviewIdDescriptionText.setText(reviewIdDescription);
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

   */
  private void createReviewerIdSelectionContent(Composite parent) {
    Label reviewerIdLabel = new Label(parent, SWT.NONE);
    reviewerIdLabel.setText(ReviewI18n.getString("ReviewIdSelectionPage.label.reviewerId"));
    this.reviewerIdCombo = new Combo(parent, SWT.READ_ONLY);
    PropertyResource reviewIdResource = PropertyResource.getInstance(this.selectedProject, false);
    reviewerIdCombo.setItems(reviewIdResource.getReviewerIdNames(this.reviewId));
    IPreferenceStore store = ReviewPlugin.getInstance().getPreferenceStore();
    String reviewerId = store.getString(ReviewIdSelectionWizard.REVIEWER_ID);
    int index = reviewerIdCombo.indexOf(reviewerId);
    reviewerIdCombo.select((index != -1) ? index : 0);

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.