Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext and CNF (Common Navigator Framework)
Xtext and CNF (Common Navigator Framework) [message #735039] Mon, 10 October 2011 17:43 Go to next message
Stefan Eidelloth is currently offline Stefan EidellothFriend
Messages: 29
Registered: September 2011
Junior Member
Hi together,

I am looking for an example on how to use the common navigator framework with the EMF model of Xtext.

Here is a tutorial on CNF end EMF:
http://www.ibm.com/developerworks/library/os-eclipse-emf/

However, I did not manage to connect it to the Xtext model.


My vision is a general tree based editor, like I described it in my first post here:
http://www.eclipse.org/forums/index.php/m/730937/

The combination of Xtext and CNF should somehow do the trick?!

I did not manage to add popup menus to the Xtext outline but I think with CNF it could work. (Maybe it would make sense to generate classes for a CNF by default instead of the files for the outline, since CNF is more flexible?)

Best regards,

Stefan

[Updated on: Mon, 10 October 2011 17:45]

Report message to a moderator

Re: Xtext and CNF (Common Navigator Framework) [message #739398 is a reply to message #735039] Mon, 17 October 2011 12:36 Go to previous message
Meinte Boersma is currently offline Meinte BoersmaFriend
Messages: 434
Registered: July 2009
Location: Leiden, Netherlands
Senior Member
Under the hood, an Xtext is an EMF model so hooking up CNF with that should be simple enough (Xtext takes care of the registration of a correct IResourceFactory itself) once you know how to get to the model and that's explained (somewhat) briefly somewhere in the User's Guide. Apart from that: customizing the Xtext outline works so well in Xtext2.0+ that there's no real need for Xtext users to go the CNF route, which could explain why it hasn't been done yet.

Previous Topic:Deploy lightweight parser/serializer
Next Topic:Eclipse Day at Googleplex
Goto Forum:
  


Current Time: Thu Apr 25 08:56:43 GMT 2024

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

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

Back to the top