Package org.sylfra.idea.plugins.revu.settings.project.workspace

Examples of org.sylfra.idea.plugins.revu.settings.project.workspace.RevuWorkspaceSettings


    if (project == null)
    {
      return false;
    }

    RevuWorkspaceSettings revuWorkspaceSettings = RevuUtils.getWorkspaceSettings(project);
    return revuWorkspaceSettings.isAutoScrollToSource();
  }
View Full Code Here


    {
      return;
    }

    RevuWorkspaceSettingsComponent settingsComponent = project.getComponent(RevuWorkspaceSettingsComponent.class);
    RevuWorkspaceSettings settings = settingsComponent.getState();

    settings.setAutoScrollToSource(!settings.isAutoScrollToSource());
    settingsComponent.loadState(settings);
  }
View Full Code Here

    review.setStatus(ReviewStatus.FIXING);
    project.getComponent(ReviewManager.class).saveChanges(review);

    RevuWorkspaceSettingsComponent workspaceSettingsComponent =
      project.getComponent(RevuWorkspaceSettingsComponent.class);
    RevuWorkspaceSettings workspaceSettings = workspaceSettingsComponent.getState();
    workspaceSettings.setReviewingReviewName(null);
    workspaceSettingsComponent.loadState(workspaceSettings);
  }
View Full Code Here

      ProjectViewSelectInTarget.select(project, this, RevuProjectViewPane.ID, review.getName(), null, true);

      RevuWorkspaceSettingsComponent workspaceSettingsComponent =
        project.getComponent(RevuWorkspaceSettingsComponent.class);
      RevuWorkspaceSettings workspaceSettings = workspaceSettingsComponent.getState();
      workspaceSettings.setReviewingReviewName(review.getName());
      workspaceSettingsComponent.loadState(workspaceSettings);
    }
View Full Code Here

    projectSettings.setReviewFiles(projectReviewFiles);
    projectSettingsComponent.loadState(projectSettings);

    RevuWorkspaceSettingsComponent workspaceSettingsComponent =
      project.getComponent(RevuWorkspaceSettingsComponent.class);
    RevuWorkspaceSettings workspaceSettings = retrieveWorkspaceSettings();
    workspaceSettings.setReviewFiles(workspaceReviewFiles);
    workspaceSettingsComponent.loadState(workspaceSettings);
  }
View Full Code Here

    {
      public void run()
      {
        initEmbeddedReviews();

        RevuWorkspaceSettings workspaceSettings = RevuUtils.getWorkspaceSettings(project);
        List<String> workspaceReviewPaths = workspaceSettings.getReviewFiles();
        List<String> projectReviewPaths = RevuUtils.getProjectSettings(project).getReviewFiles();

        List<String> allPaths = new ArrayList<String>(projectReviewPaths);
        allPaths.addAll(workspaceReviewPaths);

        loadAndAdd(allPaths, null);

        // Check that reviewingReviewName matches an existing review
        String reviewingReviewName = workspaceSettings.getReviewingReviewName();
        if (reviewingReviewName != null)
        {
          Review review = getReviewByName(reviewingReviewName);
          if ((review == null) || (!ReviewStatus.REVIEWING.equals(review.getStatus())))
          {
            workspaceSettings.setReviewingReviewName(null);
            project.getComponent(RevuWorkspaceSettingsComponent.class).loadState(workspaceSettings);
          }
        }

      }
View Full Code Here

    if (project != null)
    {
      RevuWorkspaceSettingsComponent workspaceSettingsComponent =
        project.getComponent(RevuWorkspaceSettingsComponent.class);
      RevuWorkspaceSettings workspaceSettings = workspaceSettingsComponent.getState();
      workspaceSettings.setFilterFilesWithIssues(!workspaceSettings.isFilterFilesWithIssues());
      workspaceSettingsComponent.loadState(workspaceSettings);
    }
  }
View Full Code Here

    {
      public void run()
      {
        initEmbeddedReviews();

        RevuWorkspaceSettings workspaceSettings = RevuUtils.getWorkspaceSettings(project);
        List<String> workspaceReviewPaths = workspaceSettings.getReviewFiles();
        List<String> projectReviewPaths = RevuUtils.getProjectSettings(project).getReviewFiles();

        List<String> allPaths = new ArrayList<String>(projectReviewPaths);
        allPaths.addAll(workspaceReviewPaths);

        loadAndAdd(allPaths, null);

        // Check that reviewingReviewName matches an existing review
        String reviewingReviewName = workspaceSettings.getReviewingReviewName();
        if (reviewingReviewName != null)
        {
          Review review = getReviewByName(reviewingReviewName);
          if ((review == null) || (!ReviewStatus.REVIEWING.equals(review.getStatus())))
          {
            workspaceSettings.setReviewingReviewName(null);
            project.getComponent(RevuWorkspaceSettingsComponent.class).loadState(workspaceSettings);
          }
        }

      }
View Full Code Here

    if (project == null)
    {
      return false;
    }

    RevuWorkspaceSettings revuWorkspaceSettings = RevuUtils.getWorkspaceSettings(project);
    return revuWorkspaceSettings.isAutoScrollToSource();
  }
View Full Code Here

    {
      return;
    }

    RevuWorkspaceSettingsComponent settingsComponent = project.getComponent(RevuWorkspaceSettingsComponent.class);
    RevuWorkspaceSettings settings = settingsComponent.getState();

    settings.setAutoScrollToSource(!settings.isAutoScrollToSource());
    settingsComponent.loadState(settings);
  }
View Full Code Here

TOP

Related Classes of org.sylfra.idea.plugins.revu.settings.project.workspace.RevuWorkspaceSettings

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.