Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » (no subject)
(no subject) [message #709106] Wed, 03 August 2011 13:55 Go to next message
Daniel Trierweiler is currently offline Daniel TrierweilerFriend
Messages: 67
Registered: June 2011
Member
Hey guys!

Another day, another question :)
I was wondering if there is, lets say, a keyword in the Xtext grammar language for hiding a then defined attribute from the user.
Which means in the Statemachine example I could define an additional "type" like:

Event :
name=ID code=ID type=String;

But then "type" should be hidden from the scoping, outline etc. BUT it should be generated in the EMF Model, so that I can access it through the resource.

Does anyone know if there is something to accomplish that?
Thanks a lot :)

Best regards,
Daniel
(no subject) [message #709107 is a reply to message #709106] Wed, 03 August 2011 13:58 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
You can naturally override or filter the proposals provided "out of the
box", but there is no switch to flip that automatically hides things.

- henrik

On 8/3/11 3:55 PM, Daniel Trierweiler wrote:
> Hey guys!
>
> Another day, another question :)
> I was wondering if there is, lets say, a keyword in the Xtext grammar
> language for hiding a then defined attribute from the user.
> Which means in the Statemachine example I could define an additional
> "type" like:
>
> Event :
> name=ID code=ID type=String;
> But then "type" should be hidden from the scoping, outline etc. BUT it
> should be generated in the EMF Model, so that I can access it through
> the resource.
>
> Does anyone know if there is something to accomplish that?
> Thanks a lot :)
>
> Best regards,
> Daniel
Re: (no subject) [message #709657 is a reply to message #709107] Thu, 04 August 2011 06:26 Go to previous message
Daniel Trierweiler is currently offline Daniel TrierweilerFriend
Messages: 67
Registered: June 2011
Member
Thanks Hendrik. That's exactly what I wanted to know.
Previous Topic:using IXtextEObjectSearch.findMatches
Next Topic:trouble defining cross-references in grammar
Goto Forum:
  


Current Time: Thu Apr 25 07:55:22 GMT 2024

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

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

Back to the top