Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Click on marker in Problems View jumps to different marker
Click on marker in Problems View jumps to different marker [message #507477] Wed, 13 January 2010 10:49 Go to next message
Markus  is currently offline Markus
Messages: 5
Registered: January 2010
Junior Member
Hi!

I wrote an Eclipse plugin that checks C source code for violations of a set of coding style rules. If such a violation is found, a marker (class IMarker) is created to indicate the line number and the file that contains this violation. All of these markers are displayed in the Eclipse's Problems View.

Now, if one line in a file has several markers, and the user double-clicks one marker, the source code editor jumps to the concerned line of source code (which is OK) and the Problems View jumps to another marker of the same line (which is not OK).

An example:
If the user double clicks ProblemA in the Problems View, the source code editor jumps to the source code location and the Problems View jumps to ProblemB.

ProblemA and ProblemB point to same line in the same file.


How can I make the Problems View not jump to another marker when clicking one?

My Eclipse version is 3.5.
Re: Click on marker in Problems View jumps to different marker [message #507494 is a reply to message #507477] Wed, 13 January 2010 11:48 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
Markus wrote:
> Hi!
>
> I wrote an Eclipse plugin that checks C source code for violations of
> a set of coding style rules. If such a violation is found, a marker
> (class IMarker) is created to indicate the line number and the file
> that contains this violation. All of these markers are displayed in
> the Eclipse's Problems View.
> Now, if one line in a file has several markers, and the user
> double-clicks one marker, the source code editor jumps to the
> concerned line of source code (which is OK) and the Problems View
> jumps to another marker of the same line (which is not OK).
>
> An example:
> If the user double clicks ProblemA in the Problems View, the source
> code editor jumps to the source code location and the Problems View
> jumps to ProblemB.
>
> ProblemA and ProblemB point to same line in the same file.
>
>
> How can I make the Problems View not jump to another marker when
> clicking one?
Funny: I've just fixed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=294120 today :-)

Dani
>
> My Eclipse version is 3.5.
Re: Click on marker in Problems View jumps to different marker [message #508303 is a reply to message #507494] Mon, 18 January 2010 06:10 Go to previous messageGo to next message
Markus  is currently offline Markus
Messages: 5
Registered: January 2010
Junior Member
Hi Dani!

I have downloaded Eclipse N20100114-2000, installed CDT6 (June 2009) and my plugin that creates the markers.

The problem is still there, but it seems to occur less often.
Re: Click on marker in Problems View jumps to different marker [message #508326 is a reply to message #508303] Mon, 18 January 2010 07:58 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
Markus wrote:
> Hi Dani!
>
> I have downloaded Eclipse N20100114-2000, installed CDT6 (June 2009)
> and my plugin that creates the markers.
>
> The problem is still there, but it seems to occur less often.
Works for me in the Java editor. If you still see this then please file
a bug report with steps to reproduce against CDT.

Dani
Re: Click on marker in Problems View jumps to different marker [message #508519 is a reply to message #508326] Tue, 19 January 2010 05:03 Go to previous message
Markus  is currently offline Markus
Messages: 5
Registered: January 2010
Junior Member
The CDT people suggested to use CDT7 which works fine. I can confirm this. Thank you for your help!
Previous Topic:Same Plugin with multiple versions
Next Topic:Problem with ColumnViewerEditorActivationListener in a TableViewer
Goto Forum:
  


Current Time: Thu Jul 24 13:53:55 EDT 2014

Powered by FUDForum. Page generated in 0.02060 seconds