Package org.epic.perleditor.views

Examples of org.epic.perleditor.views.ExplainErrorsView


 
  /**
   * @see Action#run()
   */
  public void run() {
    ExplainErrorsView view = null;
    IWorkbenchPage activePage =
      PerlEditorPlugin
        .getWorkbenchWindow()
        .getActivePage();
    try
    {
    view = (ExplainErrorsViewactivePage.showView(
        "org.epic.perleditor.views.ExplainErrorsView");
    } catch (PartInitException e)
    {
      e.printStackTrace();
    }
    view.explain(markers);
  }
View Full Code Here


    public void testAll() throws Exception
    {
        PerlEditor editor = openEditor("EPICTest/test_ExplainErrors.pl");
        PerlEditor.TestInterface testIface = editor.getTestInterface();
        ExplainErrorsView view = null;
       
        try
        {
            view = (ExplainErrorsView) findView(VIEW_ID);
            if (view != null) closeView(view);
           
            IVerticalRuler ruler = testIface.getVerticalRuler();
            IAnnotationModel model = ruler.getModel();
           
            IMarker marker = getErrorMarker(model);
            assertNotNull(marker);

            editor.addRulerContextMenuListener(new PopupActionRunner(ACTION_ID));
           
            Mouse.click(getMarkerLocation(editor, marker), true);

            view = (ExplainErrorsView) findView(VIEW_ID);
            assertNotNull(view);
            assertTrue(view.getText().startsWith("Bareword"));
        }
        finally
        {
            if (view != null) closeView(view);
            closeEditor(editor);
View Full Code Here

TOP

Related Classes of org.epic.perleditor.views.ExplainErrorsView

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.