Refactoring rename - new reference text [message #883618] |
Fri, 08 June 2012 19:29  |
Eclipse User |
|
|
|
Hi,
I have enabled refactor/rename and it is working quite well. I have a quick
question:
If I rename an element and the cross ref is in a location that can use a
short name or a qualified name (e.g. Prefix.shortname), what dictates
whether the calculated new reference text is short or qualified? If my scope
provider comes back with both, is the first one used by default?
Mary
|
|
|
Re: Refactoring rename - new reference text [message #883879 is a reply to message #883618] |
Sat, 09 June 2012 12:55  |
Eclipse User |
|
|
|
Yes, it's the scope provider (called by the cross reference serializer),
and yes, it is the first chosen by default.
The component in charge for renaming references this is the
IReferenceUpdater of your language.
Am 09.06.12 01:29, schrieb Mary Komor:
> Hi,
>
> I have enabled refactor/rename and it is working quite well. I have a
> quick question:
>
> If I rename an element and the cross ref is in a location that can use a
> short name or a qualified name (e.g. Prefix.shortname), what dictates
> whether the calculated new reference text is short or qualified? If my
> scope provider comes back with both, is the first one used by default?
>
> Mary
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
Powered by
FUDForum. Page generated in 0.03092 seconds