Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Refactoring rename - new reference text
Refactoring rename - new reference text [message #883618] Fri, 08 June 2012 23:29 Go to next message
Mary Komor is currently offline Mary KomorFriend
Messages: 61
Registered: July 2009
Member
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 16:55 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
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


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:Custom Qualified Name provider does not work, displays error
Next Topic:Attribute of type XMLGregorianCalendar
Goto Forum:
  


Current Time: Sat Oct 31 14:22:40 GMT 2020

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

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

Back to the top