Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Navigate From HTML link to Source Code Line
Navigate From HTML link to Source Code Line [message #991425] Wed, 19 December 2012 03:17 Go to next message
Yakov Keselman is currently offline Yakov Keselman
Messages: 2
Registered: December 2012
Junior Member
Hello everyone!

I wonder if there is a mechanism to tell Eclipse to jump to a specific line number in the source file from other windows. I generate an HTML file, inserting line numbers as I go. I'd like to be able to jump to specific lines by following HTML links.

Sorry if this is not the right forum. This is my first posting.

Thanks a lot,

= Yakov
Re: Navigate From HTML link to Source Code Line [message #997641 is a reply to message #991425] Tue, 08 January 2013 13:21 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 19.12.2012 14:44, Yakov Keselman wrote:
> Hello everyone!
>
> I wonder if there is a mechanism to tell Eclipse to jump to a specific
> line number in the source file from other windows. I generate an HTML
> file, inserting line numbers as I go. I'd like to be able to jump to
> specific lines by following HTML links.

Take a look at EditorUtility.revealInEditor(IEditorPart, int, int) [1].

Dani

[1]
http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/plain/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/EditorUtility.java

>
> Sorry if this is not the right forum. This is my first posting.
>
> Thanks a lot,
>
> = Yakov
Previous Topic:Prevent files from deleteion by publisher
Next Topic:where to post :)
Goto Forum:
  


Current Time: Tue Oct 21 12:17:44 GMT 2014

Powered by FUDForum. Page generated in 0.13133 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software