| Summary: | Breakpoint position in Xtend and Xpand is not right calculated | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] M2T | Reporter: | Benjamin Schwertfeger <benjamin.schwertfeger> | ||||
| Component: | Xpand | Assignee: | Project Inbox <m2t.xpand-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | sebastian.zarnekow | ||||
| Version: | 1.0.0 | Flags: | sebastian.zarnekow:
helios+
|
||||
| Target Milestone: | SR1 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
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. looks good to me. Patch applied to mwe as well. Bug resolved before Xpand 1.2 release date => Closing |
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.