Package org.eclipse.jface.text.hyperlink

Examples of org.eclipse.jface.text.hyperlink.IHyperlink.open()


    try {
      activePage.closeAllEditors(false);
      IDE.openEditor(activePage, file);
    } catch (PartInitException e) {
    }
    hyperlink.open();
    final IEditorPart activeEditor = activePage.getActiveEditor();
    assertTrue(activeEditor.getEditorInput() instanceof FileEditorInput);
    FileEditorInput input = (FileEditorInput) activeEditor.getEditorInput();
    assertEquals("/testproject/src/main/java/org/qwickie/test/project/issue54/Issue54Page.html", input.getFile().getFullPath().toPortableString());
    activePage.closeAllEditors(false);
View Full Code Here


    try {
      activePage.closeAllEditors(false);
      IDE.openEditor(activePage, file);
    } catch (PartInitException e) {
    }
    hyperlink.open();
    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());
View Full Code Here

    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();
    assertEquals("/testproject/src/main/java/org/qwickie/test/project/refactor/ModalPanel2.html", input.getFile().getFullPath().toPortableString());
    activePage.closeAllEditors(false);
View Full Code Here

    try {
      activePage.closeAllEditors(false);
      IDE.openEditor(activePage, file);
    } catch (PartInitException e) {
    }
    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);
View Full Code Here

    try {
      activePage.closeAllEditors(false);
      IDE.openEditor(activePage, file);
    } catch (PartInitException e) {
    }
    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);
View Full Code Here

    try {
      activePage.closeAllEditors(false);
      IDE.openEditor(activePage, file);
    } catch (PartInitException e) {
    }
    hyperlink.open();
    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");
View Full Code Here

      /**
       * Force the highlight range to change when the hyperlink is
       * opened by altering the highlighted range beforehand.
       */
      getTextEditor().setHighlightRange(Math.max(0, region.getOffset() - 1), 0, false);
      hyperlink.open();
    }
  }
}
View Full Code Here

  }

  public void open() {
    IHyperlink link = getHyperlink();
    if (link != null) {
      link.open();
    }
  }
}
View Full Code Here

   * @see org.eclipse.jface.text.hyperlink.IHyperlink#open()
   */
  public void open() {
    IHyperlink link = getHyperlink();
    if (link != null)
      link.open();
  }
}
View Full Code Here

      region = new Region(start, getCompletionRegion().getLength());
    }

    IHyperlink hyperlink = createHyperlink(value, region);
    if (hyperlink != null) {
      hyperlink.open();
      return true;
    }
    return false;
  }
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.