Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Refactoring rename - new reference text
Refactoring rename - new reference text [message #883618] Fri, 08 June 2012 19:29 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Custom Qualified Name provider does not work, displays error
Next Topic:Attribute of type XMLGregorianCalendar
Goto Forum:
  


Current Time: Wed Jul 23 09:55:56 EDT 2025

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

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

Back to the top