Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333657 - [Refactoring] Wrong target object selected
Summary: [Refactoring] Wrong target object selected
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-06 10:08 EST by Jan Koehnlein CLA
Modified: 2017-09-19 17:30 EDT (History)
1 user (show)

See Also:
sven.efftinge: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Koehnlein CLA 2011-01-06 10:08:50 EST
Triggering refactoring in the following dmodel

entity X {
  attr : X
      ^
      caret position

will select the entity X as target. EObjectAtOffsetHelper should choose the element before the caret, if the caret is on a whitespace node.
Comment 1 Jan Koehnlein CLA 2011-03-26 18:42:17 EDT
Fixed in HEAD
Comment 2 Karsten Thoms CLA 2017-09-19 17:18:49 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:30:14 EDT
Closing all bugs that were set to RESOLVED before Neon.0