Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Rename shifts from expectation(originalTextRegion is not updated in DefaultRenameStratege )
Rename shifts from expectation [message #1004168] Tue, 22 January 2013 13:07
Hao Xie is currently offline Hao Xie
Messages: 68
Registered: January 2013
Member
I have my language WRESL, which for example have the following code:

goal test1{abc>1.0}
goal test2{abc<2.0}
goal test3{abc>1.5}
goal test4{abc<1.8}
goal test5{abc<1.6}

I would like to implement rename function for example on the variable "abc". However, after I changed the "abc" in the second line to "ab", my code became:

goal test1{ab>1.0}
goal test2{aab2.0}
goal test3{abab5}
goal test4{abc<ab}
goal test5{abc<1ab

I used DefaultRenameStratege. It seems that after the first modification, my code shift for one character but the originalTextRegion in DefaultRenameStratege sticks to the same text region before the modification without update. Then from the second modifications onwards, the modifications shift from my expectation.

[Updated on: Tue, 22 January 2013 13:08]

Report message to a moderator

Previous Topic:proxy-eObjects during maven update
Next Topic:Null pointer through customizing outline view
Goto Forum:
  


Current Time: Sat Aug 30 00:27:42 EDT 2014

Powered by FUDForum. Page generated in 0.01577 seconds