Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » JVM inferred objects and content assist still not solved(content assist still does not work for inferred types)
JVM inferred objects and content assist still not solved [message #1094878] Mon, 26 August 2013 10:26 Go to next message
Christian Mauceri is currently offline Christian MauceriFriend
Messages: 22
Registered: May 2012
Location: Paris
Junior Member
Hi, can somebody explain me this behavior ?
I use the DomainModel example in the following way:

I have created a Java project with a package named test.one, in this package I have created two files

UrluA.dmodel with the following content :
import java.util.List

entity UrluA {
a : List<String>
}

and UrluB.dmodel with the following content :
import test.one.*

entity UrluB {
b : UrluA
}


everything works fine except when I call the content assist on 'b : Urlu' the only proposal I get is 'UrluB' not 'UrluA'.
I think it should propose also UrluA and even propose to import test.one.UrluA, why does not it do that ?
In src-gen I can see UrluA.java and UrluB.java.

[Updated on: Mon, 26 August 2013 10:28]

Report message to a moderator

Re: JVM inferred objects and content assist still not solved [message #1094924 is a reply to message #1094878] Mon, 26 August 2013 11:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

hmmm packages aren't implicit. never the less i get content assist.
sure the model project has xtext nature, is a java project (java nature) and you have build automatically on?



Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: JVM inferred objects and content assist still not solved [message #1094967 is a reply to message #1094924] Mon, 26 August 2013 13:01 Go to previous messageGo to next message
Christian Mauceri is currently offline Christian MauceriFriend
Messages: 22
Registered: May 2012
Location: Paris
Junior Member
Here is my eclipse window:
It's a Java project with an XText nature:

https://lh4.googleusercontent.com/-CWUanI8CaQc/UhtQMjSFPLI/AAAAAAAAB7Y/Wmr4a8ksMaQ/w759-h496-no/screnshot.png

Am I forgetting something ?
  • Attachment: screnshot.png
    (Size: 215.06KB, Downloaded 99 times)
Re: JVM inferred objects and content assist still not solved [message #1095048 is a reply to message #1094967] Mon, 26 August 2013 14:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
very strange. can you share your project?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: JVM inferred objects and content assist still not solved [message #1095072 is a reply to message #1095048] Mon, 26 August 2013 15:26 Go to previous messageGo to next message
Christian Mauceri is currently offline Christian MauceriFriend
Messages: 22
Registered: May 2012
Location: Paris
Junior Member
Christian,
Here it is.
Thanks for your patience.
Re: JVM inferred objects and content assist still not solved [message #1095080 is a reply to message #1095072] Mon, 26 August 2013 15:42 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
looks like scr-gen has to be a source folder

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: JVM inferred objects and content assist still not solved [message #1095089 is a reply to message #1095080] Mon, 26 August 2013 15:57 Go to previous messageGo to next message
Christian Mauceri is currently offline Christian MauceriFriend
Messages: 22
Registered: May 2012
Location: Paris
Junior Member
Great Christian, it works ! I'm wondering however why the src-gen is not a source folder by default, is there a reason why it is not the case ?
Re: JVM inferred objects and content assist still not solved [message #1095090 is a reply to message #1095089] Mon, 26 August 2013 16:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
sorry have no idea on that

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: JVM inferred objects and content assist still not solved [message #1095458 is a reply to message #1095090] Tue, 27 August 2013 04:42 Go to previous message
Christian Mauceri is currently offline Christian MauceriFriend
Messages: 22
Registered: May 2012
Location: Paris
Junior Member
It should be great to have a wizard taking care of all these things Smile
Previous Topic:Xtext/Xtend integration in a Maven build
Next Topic:defined int attribute in the grammar ,this elements is incrementally automatically
Goto Forum:
  


Current Time: Sat Apr 20 01:50:07 GMT 2024

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

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

Back to the top