Examples of closeAllEditors()


Examples of org.eclipse.ui.IWorkbenchPage.closeAllEditors()

    hyperlink.open();
    final IEditorPart activeEditor = activePage.getActiveEditor();
    assertTrue(activeEditor.getEditorInput() instanceof FileEditorInput);
    FileEditorInput input = (FileEditorInput) activeEditor.getEditorInput();
    assertEquals(input.getFile().getFullPath().toPortableString(), "/testproject/src/main/java/org/qwickie/test/project/issue45/mobile/RegistrationPage.java");
    activePage.closeAllEditors(false);

    System.out.println("testDetectionPackageOne:\t" + (System.nanoTime() - start));
  }

  @Test
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.closeAllEditors()

    final IHyperlink hyperlink = hyperlinks[0];
    assertEquals(hyperlink.getHyperlinkText(), "Open java file and jump to wicket:id \"test\"");

    final IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    try {
      activePage.closeAllEditors(false);
      IDE.openEditor(activePage, file);
    } catch (PartInitException e) {
    }
    hyperlink.open();
    final IEditorPart activeEditor = activePage.getActiveEditor();
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.closeAllEditors()

    hyperlink.open();
    final IEditorPart activeEditor = activePage.getActiveEditor();
    assertTrue(activeEditor.getEditorInput() instanceof FileEditorInput);
    FileEditorInput input = (FileEditorInput) activeEditor.getEditorInput();
    assertEquals(input.getFile().getFullPath().toPortableString(), "/testproject/src/main/java/org/qwickie/test/project/issue45/web/RegistrationPage.java");
    activePage.closeAllEditors(false);

    System.out.println("testDetectionPackageTwo:\t" + (System.nanoTime() - start));
  }

  @Test
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.closeAllEditors()

    final IHyperlink hyperlink = hyperlinks[0];
    assertEquals(hyperlink.getHyperlinkText(), "Open properties file and jump to wicket:id \"page.test.string\"");

    final IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    try {
      activePage.closeAllEditors(false);
      IDE.openEditor(activePage, file);
    } catch (PartInitException e) {
    }
    hyperlink.open();
    final IEditorPart activeEditor = activePage.getActiveEditor();
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.closeAllEditors()

    final IEditorPart activeEditor = activePage.getActiveEditor();
    assertTrue(activeEditor.getEditorInput() instanceof FileEditorInput);
    assertEquals(activeEditor.getClass().getCanonicalName(), "org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart");
    FileEditorInput input = (FileEditorInput) activeEditor.getEditorInput();
    assertEquals(input.getFile().getFullPath().toPortableString(), "/testproject/src/main/java/org/qwickie/test/project/xml/HomePage.properties.xml");
    activePage.closeAllEditors(false);

    System.out.println("testDetectionXML:\t\t" + (System.nanoTime() - start));
  }

}
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.closeAllEditors()

    hover.setEditor(activePage.getActiveEditor());
    TextViewer viewer = new TextViewer(new Shell(), 0);
    viewer.setDocument(javaDocument);
    assertEquals("<b>Line in HomePage.html</b><br>&lt;div wicket:id=<b>\"message\"</b>>&lt;/div>", hover.getHoverInfo(viewer, new Region(421, 0)));

    activePage.closeAllEditors(false);

    System.out.println("testHoverInfo:\t\t\t" + (System.nanoTime() - start));
  }

}
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.closeAllEditors()

    final IHyperlink hyperlink = hyperlinks[0];
    assertEquals("WicketHyperlink for wicket:id \"test\" to html file", hyperlink.toString());
    assertEquals("Open html file and jump to wicket:id \"test\"", hyperlink.getHyperlinkText());

    try {
      activePage.closeAllEditors(false);
      IDE.openEditor(activePage, file);
    } catch (PartInitException e) {
    }
    hyperlink.open();
    final IEditorPart activeEditor = activePage.getActiveEditor();
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.closeAllEditors()

    final IEditorPart activeEditor = activePage.getActiveEditor();
    assertTrue(activeEditor.getEditorInput() instanceof FileEditorInput);
    FileEditorInput input = (FileEditorInput) activeEditor.getEditorInput();
    assertEquals("/testproject/src/main/resources/org/qwickie/test/project/issue45/mobile/RegistrationPage.html", input.getFile().getFullPath()
        .toPortableString());
    activePage.closeAllEditors(false);

    System.out.println("testQWickieJavaHlDetector:\t" + (System.nanoTime() - start));
  }

  @Test
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.closeAllEditors()

        "WicketComponentHyperlink for wicket Component ModalPanel2 to L/testproject/src/main/java/org/qwickie/test/project/refactor/ModalPanel2.html",
        componentHyperlink.toString());
    assertEquals("Open \"ModalPanel2.html\"", componentHyperlink.getHyperlinkText());

    try {
      activePage.closeAllEditors(false);
      IDE.openEditor(activePage, file);
    } catch (PartInitException e) {
    }
    wicketHyperlink.open();
    IEditorPart activeEditor = activePage.getActiveEditor();
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.closeAllEditors()

    wicketHyperlink.open();
    IEditorPart activeEditor = activePage.getActiveEditor();
    assertTrue(activeEditor.getEditorInput() instanceof FileEditorInput);
    FileEditorInput input = (FileEditorInput) activeEditor.getEditorInput();
    assertEquals("/testproject/src/main/java/org/qwickie/test/project/refactor/RefPage.html", input.getFile().getFullPath().toPortableString());
    activePage.closeAllEditors(false);

    componentHyperlink.open();
    activeEditor = activePage.getActiveEditor();
    assertTrue(activeEditor.getEditorInput() instanceof FileEditorInput);
    input = (FileEditorInput) activeEditor.getEditorInput();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.