Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Partial Embedded Xtext Editor
Partial Embedded Xtext Editor [message #840485] Tue, 10 April 2012 06:30 Go to next message
Vishal seth is currently offline Vishal sethFriend
Messages: 32
Registered: April 2010
Member
Hi,

I have a use case where I need to show the model data in a tree view. But in a tree view the editor should open data related to the node of the tree & not the entire model data.

E.g. my xtext model is as below where an employer would have employees.

Model:
employer=Employer;

Employer:
'Employer' name=ID (employees+= Employee)*;

Employee:
'Employee' name=ID ;


Now I have created a tree view as below:

Employer1
-Employee1
-Employee2
Employer2
.
.

In the above tree when I click on Employee1 it should open details related to employee1 only & not of other employees.

Would be great, if someone can throw some hints for how to go about this one.

Thanks
Vishal
Re: Partial Embedded Xtext Editor [message #840494 is a reply to message #840485] Tue, 10 April 2012 06:47 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6495
Registered: July 2009
Senior Member
Hi,

the very same was asked just one post ago
http://www.eclipse.org/forums/index.php/t/323571/

~Christian
Previous Topic:Building a xText projects temporal with Ant
Next Topic:[solved] Access eclipse src classes in validator
Goto Forum:
  


Current Time: Wed Nov 26 11:37:51 GMT 2014

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

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