Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344679

Summary: [Browser] "Synchronize with source code"
Product: [Modeling] MoDisco Reporter: Nicolas Bros <nicolas.bros>
Component: InfrastructureAssignee: Project Inbox <modisco.web-inbox>
Status: NEW --- QA Contact:
Severity: trivial    
Priority: P5 CC: fabien.giquel, gdupe, nicolas.guyomar
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nicolas Bros CLA 2011-05-04 05:43:15 EDT
I think the action "Synchronize with source code" is a misnomer. From the name of the action and its associated icon, I expected it to work like the Eclipse outline or "Link with Editor" in the Package Explorer. That is, a single click in the model editor would have highlighted the source code in the code editor, and a double-click would have opened the source file and selected the range.

But it doesn't work this way: it does nothing on single-click, and the option actually controls whether double-clicking will open the properties view or a code editor.

So, I think it should be named something like "Open in source editor on double-click". It's a bit of a long name for a menu entry though. So maybe just "Open source on double-click".
Comment 1 Nicolas Guyomar CLA 2011-05-04 05:52:29 EDT
Hi Nicolas

+1 for "Open source on double-click"

A single-click action to navigate from the model explorer to the source code editor seemed far too invasive at the time I did this action.
Comment 2 Fabien Giquel CLA 2011-05-04 07:58:52 EDT
I agree that the label & icon does not fit the real action.
"double-click" word in one label seems weird to me. It may be "Enable Navigation to Source Code".
Comment 3 Nicolas Bros CLA 2011-05-04 08:11:37 EDT
> It may be "Enable Navigation to Source Code".

Thing is, the navigation to source code is always enabled and accessible by right-clicking and choosing "Browse code in Text Editor".

Since the only purpose of the action is to change the behavior of the double-click, "Open source on double-click" doesn't seem too strange to me.