Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to iterate over the grammar
How to iterate over the grammar [message #1741717] Sun, 28 August 2016 16:50
Jonathan L. is currently offline Jonathan L.Friend
Messages: 24
Registered: May 2016
Junior Member

in the Language I'm implementing it is also possible to declare classes as types for variables.
Therefor I want to insert all the defined class names to the content-assist with the AbstractProposalProvider.

I now got the following Method:
override completeDcl_var_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	super.completeDcl_var_Type(model, assignment, context, acceptor)

But I don't know how to get access to these defined classes and how to iterate over them, that I can add them as proposals.

It would be really nice if someone could help me with this..

Ok, I have now found a solution... so this can be ignored..

[Updated on: Sun, 28 August 2016 17:09]

Report message to a moderator

Previous Topic:xtext cross-reference from another location
Next Topic:XText Syntax
Goto Forum:

Current Time: Mon Apr 19 23:09:53 GMT 2021

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

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

Back to the top