Package edu.hawaii.ics.csdl.jupiter

Examples of edu.hawaii.ics.csdl.jupiter.ReviewPlugin


      return false;
    }
   
    // fill review issues into model.
    ReviewIssueModelManager reviewIssueModelManager = ReviewIssueModelManager.getInstance();
    ReviewPlugin plugin = ReviewPlugin.getInstance();
    IPreferenceStore store = plugin.getPreferenceStore();
    if (isReviewSelectionWizardInvoked) {
      ReviewIssueModel reviewIssueModel = reviewIssueModelManager.getModel(project, reviewId);
      reviewIssueModel.notifyListeners(ReviewIssueModelEvent.MERGE);
      // fill the specified phase's column data into model
      ColumnDataModelManager columnDataModelManager = ColumnDataModelManager.getInstance();
View Full Code Here


   * Gets the line number of the active file if any.
   *
   * @return the line number of the active file if any.
   */
  public String getLineNumber() {
    ReviewPlugin plugin = ReviewPlugin.getInstance();
    IWorkbenchWindow window = plugin.getWorkbench().getActiveWorkbenchWindow();
    if (window != null) {
      IWorkbenchPage page = window.getActivePage();
      IEditorPart activeEditorPart = page.getActiveEditor();
      if (activeEditorPart != null) {
        IEditorSite editorSite = page.getActiveEditor().getEditorSite();
View Full Code Here

   * Loads <code>Preference</code> from the PREFERENCE_XML_FILE file in the plug-in directory.
   *
   * @return Returns the <code>Preference</code> or null if it could not be loaded from file.
   */
  public static Preference loadPreference() {
    ReviewPlugin plugin = ReviewPlugin.getInstance();
    File stateLocationXmlFile = plugin.getStateLocation().append(PREFERENCE_XML_FILE).toFile();

    URL pluginUrl = ReviewPlugin.getInstance().getInstallURL();

    try {
      if (!stateLocationXmlFile.exists()) {
View Full Code Here

   *
   * @param preference The <code>Preference</code> to save to file.
   * @throws ReviewException Thrown if an error occurs while writing to file.
   */
  public static void serializePreference(Preference preference) throws ReviewException {
    ReviewPlugin plugin = ReviewPlugin.getInstance();
    File stateLocationXmlFile = plugin.getStateLocation().append(PREFERENCE_XML_FILE).toFile();
   
    XMLStreamWriter writer = null;
    try {
      StaxUtilsXMLOutputFactory xmlof = new StaxUtilsXMLOutputFactory(XMLOutputFactory
          .newInstance());
View Full Code Here

    this.reviewPhaseCombo = new Combo(reviewPhaseSubGroup, SWT.READ_ONLY);
    GridData reviewPhaseData = new GridData(GridData.FILL_HORIZONTAL);
    reviewPhaseCombo.setLayoutData(reviewPhaseData);
    reviewPhaseCombo.setItems(PrefResource.getInstance().getPhaseArray(false));
    ReviewPlugin plugin = ReviewPlugin.getInstance();
    int index = reviewPhaseCombo.indexOf(ReviewI18n.getString(reviewPhaseNameKey));
    reviewPhaseCombo.select(index);
    reviewPhaseCombo.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event e) {
        String reviewPhaseName = reviewPhaseCombo
View Full Code Here

public class CodeReviewModelEventTest extends TestCase {
  /**
   * Initializes plugin for test.
   */
  protected void setUp() {
    ReviewPlugin plugin = new ReviewPlugin();
  }
View Full Code Here

   *        <code>Logger</code>
   * @param messageSummary the message summary.
   * @param exception the exception to be thrown.
   */
  private void log(int severity, String messageSummary, Exception exception) {
    ReviewPlugin plugin = ReviewPlugin.getInstance();
    IStatus status = new Status(severity, plugin.getBundle().getSymbolicName(), IStatus.OK,
        messageSummary, exception);
    plugin.getLog().log(status);
  }
View Full Code Here

  /**
   * Sets up
   * @throws CoreException if problems occur.
   */
  public ReviewConversation() throws CoreException {
    ReviewPlugin plugin = ReviewPlugin.getInstance();
    IWorkbenchWindow[] windows = plugin.getWorkbench().getWorkbenchWindows();
    this.fooProjectMockup = new ProjectMockup(FOO_PROJECT, "bin");
    this.barProjectMockup = new ProjectMockup(BAR_PROJECT, "bin");
    this.bazProjectMockup = new ProjectMockup(BAZ_PROJECT, "bin");
    IProject fooProject = this.fooProjectMockup.getProject();
    IProject barProject = this.barProjectMockup.getProject();
View Full Code Here

TOP

Related Classes of edu.hawaii.ics.csdl.jupiter.ReviewPlugin

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.