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

Bug 321422

Summary: Breakpoint position in Xtend and Xpand is not right calculated
Product: [Modeling] M2T Reporter: Benjamin Schwertfeger <benjamin.schwertfeger>
Component: XpandAssignee: Project Inbox <m2t.xpand-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 1.0.0Flags: sebastian.zarnekow: helios+
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Patch for correct line calculation. Position must be inside the text area. sven.efftinge: iplog+

Description Benjamin Schwertfeger CLA 2010-07-31 05:22:28 EDT
Created attachment 175639 [details]
Patch for correct line calculation. Position must be inside the text area.

Double click on the gray border of a text editor calulates the position of the breakpoint in the wrong way (calculation is aborted and last line is set). The enables setting the breakpoint only at the first element in the file.

Right click somewhere in the editor and select "Toggle Breakpoint" works for me. Some problem is written as a comment to #267779. But the root problem there seems to be different.

I'll append a patch for line calculation in org.eclipse.xpand.shared.ui, which solves the breakpoint problem.
Comment 1 Benjamin Schwertfeger CLA 2010-08-03 05:33:09 EDT
As a work around you can right click in the text editor on the line for the break point and select toggle breakpoint. In this case the break point is set correctly.
Comment 2 Sebastian Zarnekow CLA 2010-08-14 08:09:04 EDT
looks good to me. Patch applied to mwe as well.
Comment 3 Karsten Thoms CLA 2013-02-21 08:10:45 EST
Bug resolved before Xpand 1.2 release date => Closing