Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » open editor by marker in problems view
open editor by marker in problems view [message #423197] Wed, 24 September 2008 17:36 Go to next message
Martin Geisse is currently offline Martin GeisseFriend
Messages: 24
Registered: July 2009
Junior Member
Hello again,

I am trying to work with EMF markers currently. I have the following
problem: When validation of an object fails with an error, a marker is
correctly placed and shown in the problems view. Double-clicking this
marker opens the editor, and the target object of the marker is selected
for a very short time, then the selection jumps to the root of the
editor's tree. Double-clicking the marker again (or at any other time
while the editor is open) finally moves the selection to the correct
object. Obviously, if the editor is not yet open, I'd like the selection
to jump to the target object of the error marker *and stay there*.

Has anybody else had this problem? The editor is the default editor
generated by EMF with no changes.

Greetings and thanks in advance,
Martin Geisse
Re: open editor by marker in problems view [message #423201 is a reply to message #423197] Wed, 24 September 2008 18:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30813
Registered: July 2009
Senior Member
Martin,

Comments below.

Martin Geisse wrote:
> Hello again,
>
> I am trying to work with EMF markers currently. I have the following
> problem: When validation of an object fails with an error, a marker is
> correctly placed and shown in the problems view. Double-clicking this
> marker opens the editor, and the target object of the marker is
> selected for a very short time, then the selection jumps to the root
> of the editor's tree.
That's odd...
> Double-clicking the marker again (or at any other time while the
> editor is open) finally moves the selection to the correct object.
> Obviously, if the editor is not yet open, I'd like the selection to
> jump to the target object of the error marker *and stay there*.
>
> Has anybody else had this problem? The editor is the default editor
> generated by EMF with no changes.
I see. I never noticed this before. I haven't looked closely, but I
suspect that selection in the outline view is being reflected in the
editor's view. It looks to be easily reproducible. Odd that no one has
ever complained. Please open a bugzilla and I'll try to come up with a
fix...
>
> Greetings and thanks in advance,
> Martin Geisse
Re: open editor by marker in problems view [message #423204 is a reply to message #423201] Wed, 24 September 2008 18:49 Go to previous messageGo to next message
Martin Geisse is currently offline Martin GeisseFriend
Messages: 24
Registered: July 2009
Junior Member
> I see. I never noticed this before. I haven't looked closely, but I
> suspect that selection in the outline view is being reflected in the
> editor's view.

Yes, it looks like that. I didn't notice it before, but after reading
your reply I tried closing the outline view and it worked correctly.

> Please open a bugzilla and I'll try to come up with a fix...

I'll do that tomorrow as I'm running out of time now.

Thanks again for your help,

Martin Geisse
Re: open editor by marker in problems view [message #423271 is a reply to message #423204] Thu, 25 September 2008 16:18 Go to previous message
Martin Geisse is currently offline Martin GeisseFriend
Messages: 24
Registered: July 2009
Junior Member
> Please open a bugzilla and I'll try to come up with a fix...

Bug #248618

https://bugs.eclipse.org/bugs/show_bug.cgi?id=248618
Previous Topic:Format generated Code
Next Topic:Source code for ecore generator
Goto Forum:
  


Current Time: Wed Jan 22 19:27:51 GMT 2020

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

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

Back to the top