Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » HyperlinkHelper and proxy resolution
HyperlinkHelper and proxy resolution [message #1784260] Sun, 25 March 2018 13:00 Go to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 134
Registered: July 2009
Location: Canada
Senior Member
Hi,

The "HyperlinkHelper" expects all the cross-references to be resolved (PS - createHyperlinksByOffset(..)). Is this correct behavior?

The method createHyperlinksTo() merely uses the resolved object to get its URI (EcoreUtil.getURI(target)), which can be obtained from a proxy too.

I hope I am not missing something here. Tx in advance.





Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: HyperlinkHelper and proxy resolution [message #1784261 is a reply to message #1784260] Sun, 25 March 2018 13:01 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12390
Registered: July 2009
Senior Member
Hi can you be a bit more specific on what you want to achieve.
You can customize HyperlinkHelper if you want


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: HyperlinkHelper and proxy resolution [message #1784262 is a reply to message #1784261] Sun, 25 March 2018 14:05 Go to previous message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 134
Registered: July 2009
Location: Canada
Senior Member
Hi Christian, Tx for your reply. I have customized the HyperlinkHelper and it works for me.
I was thinking about the original implementation. I initially thought that it should NOT expect all the objects to be resolved, but after thinking a bit more I realized that the behavior is correct. Neither the HyperlinkHelper nor the URIEditorInput does the resolution.

Tx


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Previous Topic:Serializing model
Next Topic:Rename element gives NPE
Goto Forum:
  


Current Time: Tue Nov 20 05:22:38 GMT 2018

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

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

Back to the top