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

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


   *
   * @param composite the composite.
   * @return the control.
   */
  private Control createDefaultItems(Composite composite) {
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String reviewIdString = PropertyConstraints.DEFAULT_REVIEW_ID;
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);
    ReviewId reviewId = null;
    if (reviewResource != null) {
      reviewId = reviewResource.getReviewId();
    }
    IWizardPage page = getWizard().getPage(ReviewIdNewWizard.PAGE_ITEM_ENTRIES);
View Full Code Here


    // null happens when the view is not opened yet after Eclipse startup.
    if (tableView == null) {
      tableView = ReviewTableView.bringViewToTop();
    }
    tableView.createColumns(columnDataModel);
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String reviewIdString = reviewId.getReviewId();
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);
    IPreferenceStore store = ReviewPlugin.getInstance().getPreferenceStore();
    String prefFilterKey = FilterPreferencePage.ENABLE_FILTER_STORE_KEY;
    boolean isPrefFilterEnabled = store.getBoolean(prefFilterKey);
    if (isPrefFilterEnabled) {
      tableView.setFilterStatus(isPrefFilterEnabled);
View Full Code Here

    if (view == null) {
      log.debug("view is null");
      view = ReviewTableView.bringViewToTop();
    }
    view.createColumns(columnDataModel);
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String reviewIdString = reviewId.getReviewId();
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);
    IPreferenceStore store = ReviewPlugin.getInstance().getPreferenceStore();
    String prefFilterKey = FilterPreferencePage.ENABLE_FILTER_STORE_KEY;
    boolean isPrefFilterEnabled = store.getBoolean(prefFilterKey);
    if (isPrefFilterEnabled) {
      view.setFilterStatus(isPrefFilterEnabled);
View Full Code Here

   * @return the <code>ViewerFilter</code> from property setting.
   */
  public static ViewerFilter createFilterFromProperty(IProject project, ReviewId reviewId,
                                                     String phaseNameKey) {
    ReviewFilter filter = new ReviewFilter();
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String reviewIdString = reviewId.getReviewId();
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);
    FilterPhase filterPhase = reviewResource.getFilterPhase(phaseNameKey);
    if (reviewResource != null && filterPhase.isEnabled()) {
      String intervalName = PropertyConstraints.ATTRIBUTE_VALUE_INTERVAL;
      FilterEntry entry = filterPhase.getFilterEntry(intervalName);
      if (entry != null && entry.isEnabled()) {
View Full Code Here

      // null happens when the view is not opened yet after Eclipse startup.
      if (view == null) {
        view = ReviewTableView.bringViewToTop();
      }
      view.createColumns(columnDataModel);
      PropertyResource propertyResource = PropertyResource.getInstance(project, true);
      String reviewIdString = reviewId.getReviewId();
      ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);
      if (reviewResource != null) {
        FilterPhase filterPhase = reviewResource.getFilterPhase(reviewPhaseNameKey);
        view.setFilterStatus(filterPhase.isEnabled());
      }
    }
View Full Code Here

   * Creates item entries content.
   * @param composite the composite.
   * @return the control.
   */
  private Control createItemEntriesContent(Composite composite) {
    PropertyResource propertyResource = PropertyResource.getInstance(this.project, true);
    String reviewIdString = PropertyConstraints.DEFAULT_REVIEW_ID;
    ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);
    if (reviewResource != null) {
      this.fieldItemIdFieldItemMap = reviewResource.getFieldItemMap();
      this.fieldItemIdList = reviewResource.getFieldItemIdList();
    }
    this.itemCombo = new Combo(composite, SWT.READ_ONLY);
View Full Code Here

  /**
   * Restores the item entries from the default review id.
   */
  protected void restoreItemEntries() {
    // read from .jupiter.
    PropertyResource propertyResource = PropertyResource.getInstance(project, true);
    String defaultReviewID = PropertyConstraints.DEFAULT_REVIEW_ID;
    ReviewResource reviewResource = propertyResource.getReviewResource(defaultReviewID, true);
    if (reviewResource != null) {
      String fieldItemId = this.itemCombo.getText();
      FieldItem fieldItem = reviewResource.getFieldItem(fieldItemId);
      this.fieldItemIdFieldItemMap.put(fieldItemId, fieldItem);
      fillItemTable(fieldItemId);
View Full Code Here

  private static void create(Menu menu) {
    ReviewModel reviewModel = ReviewModel.getInstance();
    final IProject project = reviewModel.getProjectManager().getProject();
    ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
    if (project != null && reviewId != null) {
      PropertyResource propertyResource = PropertyResource.getInstance(project, false);
      String reviewIdString = reviewId.getReviewId();
      ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);
     
      // Get current editor file to highlight it if it is in the list of
      // our review files
      IFile activeFile = FileResource.getActiveFile();
      String activeFileName = null;
View Full Code Here

  private void createProjectSelectionContent(Composite parent) {
    Label authorLabel = new Label(parent, SWT.NONE);
    authorLabel.setText(ReviewI18n.getString("ReviewIdNewAuthorPage.label.author"));
    this.authorCombo = new Combo(parent, SWT.READ_ONLY);
    authorCombo.setData(authorCombo);
    PropertyResource propertyResource = PropertyResource.getInstance(this.project, true);
    String defaultReviewId = PropertyConstraints.DEFAULT_REVIEW_ID;
    ReviewId reviewId = propertyResource.getReviewId(defaultReviewId);
    Map<String, ReviewerId> reviewers = reviewId.getReviewers();
    String author = reviewId.getAuthor();
    authorCombo.setItems(reviewers.keySet().toArray(new String[] {}));
    authorCombo.setText(author);
    authorCombo.addListener(SWT.Selection, new Listener() {
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_STATUS, this);
    }
  }
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.