Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » opening an editor on virtual content
opening an editor on virtual content [message #835604] Tue, 03 April 2012 12:58 Go to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Hi!

A project can refer to libraries that contain compiled code. The source code for the library files can be reconstructed from the compiled binaries. How can I open an Xtext editor on such reconstructed source (i.e. the document is a String)?

For example, if I had Java support as an Xtext plugin, opening a .class file that has source attached should show an Xtext editor with the source.

best regards,
Vlad
Re: opening an editor on virtual content [message #835612 is a reply to message #835604] Tue, 03 April 2012 13:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Just a hint: did you have a look on what Xtext does for the Compare View: org.eclipse.xtext.ui.compare.DefaultContentViewer

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: opening an editor on virtual content [message #835615 is a reply to message #835612] Tue, 03 April 2012 13:10 Go to previous message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
That's a good hint! Thank you, Christian!

/Vlad
Previous Topic:How to express a literal in Xtext
Next Topic:How to leverage ecore in Xtext
Goto Forum:
  


Current Time: Thu Apr 25 12:10:05 GMT 2024

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

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

Back to the top