Package edu.hawaii.ics.csdl.jupiter.file

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


   * Fills the file table with files.
   * @param projectName the project name.
   */
  public void fillFileTable(String projectName) {
    IProject project = FileResource.getProject(projectName);
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String defaultReviewId = PropertyConstraints.DEFAULT_REVIEW_ID;
    ReviewResource reviewResource = propertyResource.getReviewResource(defaultReviewId, true);
    if (reviewResource != null) {
      this.files = reviewResource.getFileSet();
      for (Iterator<String> i = this.files.iterator(); i.hasNext();) {
        String file = (String) i.next();
        TableItem item = new TableItem(this.fileListTable, SWT.NONE);
View Full Code Here


      dialog.open();
      if (dialog.getReturnCode() == Dialog.OK) {
        // remove review files associated with the review id.
        FileResource.remove(reviewIFiles);
        try {
          PropertyResource propertyResource = PropertyResource
              .getInstance(this.project, false);
          propertyResource.removeReviewResource(reviewId);
        }
        catch (ReviewException e) {
          log.error(e);
        }
      }
View Full Code Here

   *          items are read from the property resource.
   */
  public void fillReviewerTable(boolean isUpdate) {
    removeAllItemsInReviewerTable();
    if (!isUpdate) {
      PropertyResource reviewIdResource = PropertyResource.getInstance(this.project, true);
      Map<String, ReviewerId> reviewersMap = reviewIdResource
          .getReviewers(PropertyResource.DEFAULT_ID);
      this.reviewers = new TreeMap<String, ReviewerId>(reviewersMap);
    }
    for (Iterator<String> i = this.reviewers.keySet().iterator(); i.hasNext();) {
      String reviewerId = i.next();
View Full Code Here

   * Loads resolution key.
   * @param project the project.
   * @param reviewId the review id.
   */
  private void loadKey(IProject project, ReviewId reviewId) {
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String reviewIdName = reviewId.getReviewId();
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdName, true);
    if (reviewResource != null) {
      reviewResource.loadEntryKey(PropertyConstraints.ATTRIBUTE_VALUE_RESOLUTION, this);
    }
  }
View Full Code Here

   * @param e the event.
   */
  protected void handleProjectSelection(Event e) {
    String projectName = ((Combo) e.widget.getData()).getText();
    IProject project = FileResource.getProject(projectName);
    PropertyResource reviewIdResource = PropertyResource.getInstance(this.project, false);
    this.tempReviewIdList = Arrays.asList(reviewIdResource.getReviewIdNames());
  }
View Full Code Here

  /**
   * Creates filter content.
   * @param composite the composite.
   */
  private void createFilterContent(Composite composite) {
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String reviewIdString = PropertyConstraints.DEFAULT_REVIEW_ID;
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);
    final ReviewId reviewId = reviewResource.getReviewId();
    this.phaseNameFilterPhaseMap = reviewResource.getPhaseNameToFilterPhaseMap();
    List<String> phaseNameList = reviewResource.getPhaseNameList();
    this.phaseCombo = new Combo(composite, SWT.READ_ONLY);
    phaseCombo.setData(phaseCombo);
View Full Code Here

   * Loads resolution key.
   * @param project the project.
   * @param reviewId the review id.
   */
  private void loadKey(IProject project, ReviewId reviewId) {
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String reviewIdName = reviewId.getReviewId();
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdName, true);
    if (reviewResource != null) {
      reviewResource.loadEntryKey(PropertyConstraints.ATTRIBUTE_VALUE_SEVERITY, this);
    }
  }
View Full Code Here

   * Loads resolution key.
   * @param project the project.
   * @param reviewId the review id.
   */
  private void loadKey(IProject project, ReviewId reviewId) {
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String reviewIdName = reviewId.getReviewId();
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdName, true);
    if (reviewResource != null) {
      reviewResource.loadEntryKey(PropertyConstraints.ATTRIBUTE_VALUE_TYPE, this);
    }
  }
View Full Code Here

   * @return the control.
   */
  private Control createDefaultItemsFolder(TabFolder folder) {
    Composite composite = createsGeneralComposite(folder);
    int marginWidth = ((FormLayout) composite.getLayout()).marginWidth;
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String reviewIdString = reviewId.getReviewId();
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);

    // create type label and its combo.
    Label defaultTypeLabel = new Label(composite, SWT.NONE);
    defaultTypeLabel.setText(ReviewI18n.getString("ReviewIdEditDialog.label.type"));
    this.defaultTypeCombo = new Combo(composite, SWT.READ_ONLY);
View Full Code Here

   *
   * @param folder the folder.
   * @return the control.
   */
  private Control createfiltersFolder(TabFolder folder) {
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String reviewIdString = reviewId.getReviewId();
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);
    this.phaseNameFilterPhaseMap = reviewResource.getPhaseNameToFilterPhaseMap();
    List<String> phaseNameList = reviewResource.getPhaseNameList();
    Composite composite = createsGeneralComposite(folder);
    this.phaseCombo = new Combo(composite, SWT.READ_ONLY);
    phaseCombo.setData(phaseCombo);
View Full Code Here

TOP

Related Classes of edu.hawaii.ics.csdl.jupiter.file.PropertyResource

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.