Skip to main content

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 18:07
Hao Xie is currently offline Hao XieFriend
Messages: 68
Registered: January 2013
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 18: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: Tue Feb 25 13:56:47 GMT 2020

Powered by FUDForum. Page generated in 0.08550 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top