2

For debugging reasons, we have a tool that displays our component tree structure in a web page, this contains hundreds of different classes.

What i would like to do is to generate a hyperlink to automatically open the java class in eclipse from the browser (i.e something like: <a href="eclipse://com.java.util.ArrayList#"removeAll,Collection"> ).

Is it possible to configure eclipse to open a specific Java class at a specific method from a browser?

1 Answers1

1

You can open file in eclipse with command line option refer here. But you can't jump to any functions and to any given line number see bug.


If you just want to open file in eclipse(regardless of location):


Call the command(explained in first link) via Javascript. Refer How can I run a program or batch file on the client side? and How to execute an executable from Linux with javascript but I am not sure whether is works and depends on OS and/or browser.


You can open Java file in browser itself with syntax highlighting:


Refer Code Mirror and ACE, FileReader and CodeMirror Load File Complication, Loading .txt file into textarea Javascript?.

Community
  • 1
  • 1
Chandrayya G K
  • 8,719
  • 5
  • 40
  • 68
  • Thank you Chandrayya, for URL side i would configure a protocol, but for the eclipse side i have raised bug 452087. – Alex Alvarez Nov 18 '14 at 13:15