Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » reference(problem reference)
reference [message #842427] Thu, 12 April 2012 09:33 Go to next message
Gianluca Viscomi is currently offline Gianluca ViscomiFriend
Messages: 33
Registered: April 2012
Location: Italy
Member


Salt guys let me know how I can refer Hadu my object (myclass) will place you one example:

model:
query = query;
query:
'SELECT' dbobject;

dbobject:
list = [jvmTypes:: jvmTypes list my items]
;

In pretica I wish that with ctrl-space appeared to me a list of my items to choose from.

Thanks in advance Rolling Eyes
Re: reference [message #842865 is a reply to message #842427] Thu, 12 April 2012 17:32 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14664
Registered: July 2009
Senior Member
Hi,

i am not quite sure what you want to do. can you share a sample model?

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: reference [message #843664 is a reply to message #842865] Fri, 13 April 2012 08:52 Go to previous messageGo to next message
Gianluca Viscomi is currently offline Gianluca ViscomiFriend
Messages: 33
Registered: April 2012
Location: Italy
Member
Hi Christian

The thing I need is that when I use ctrl-space my rule Name consists of a list of names (string) including an order choosing. The list must be external to the grammar seen that with my editor, I can connect to several db, so this list will be different every time. I give the idea with this example:

I connect to the db Gianluca:

Model:
query = query;
Query:
'SELECT' dbobject;

Dbobject:

list = [:: jvmTypes jvmTypes list my items]

in this case, when I'm going to use the editor
by ctrl-space will I display the list of db table
Gianluca then choosing a:
as {
Name
Age
Work
}

once you press enter on the job I will have "SELECT job"
;



I connect to the db Christian:

Model:
query = query;
Query:
'SELECT' dbobject;

Dbobject:

list = [:: jvmTypes jvmTypes list my items]

in this case, when I'm going to use the editor
by ctrl-space will I display the list of db table
Chrisrian certainly with elements other than those of db
Gianluca including choosing a
as {
People
Employees
Salary



}

once you press enter on People I "SELECT People"
;


In other words I want the rule dbobject have to fill a container with shakes or objects outside the grammar.
Can I do this? or is there a method to return a list java? Reading the tutorial that I did not understand a lot ....
Thanks in advance.

Re: reference [message #843700 is a reply to message #843664] Fri, 13 April 2012 09:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14664
Registered: July 2009
Senior Member
And what does that have to do with jvmtypes? And do you want to have
real cross references or simply edit support?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: reference [message #843708 is a reply to message #843700] Fri, 13 April 2012 09:44 Go to previous messageGo to next message
Gianluca Viscomi is currently offline Gianluca ViscomiFriend
Messages: 33
Registered: April 2012
Location: Italy
Member
you will excuse me, I know we say that instead of jvmTypes there is

list = [listTables]

list table should be a dynamic container in which to inject each time different squeezes that are no more than names tables forming part of a Db ..
I hope I was clear ......!!
I'm sorry again.
Re: reference [message #843717 is a reply to message #843708] Fri, 13 April 2012 09:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14664
Registered: July 2009
Senior Member
OK but do you really want to have a cross ref or just content assist?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: reference [message #843722 is a reply to message #843717] Fri, 13 April 2012 09:59 Go to previous message
Gianluca Viscomi is currently offline Gianluca ViscomiFriend
Messages: 33
Registered: April 2012
Location: Italy
Member
Ok I will see the contents!
Previous Topic:Can I open a Xtext editor for a element tree contained in another model?
Next Topic:Re: Creating common interface
Goto Forum:
  


Current Time: Tue Apr 16 12:38:16 GMT 2024

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

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

Back to the top