Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Query the model of a Document
Query the model of a Document [message #1021170] Tue, 19 March 2013 15:46 Go to next message
Toni Glaesser is currently offline Toni GlaesserFriend
Messages: 2
Registered: March 2013
Junior Member

I think the title is not appropriate for my issue but I do not have an approach on what to look for.

Okay here is my problem. I describe the basic properties of my application in an own modelfile, which looks something like this:

      basePageClass com.mycompany.RootPage
	pageClass com.mycompany.modulepages.DashboardPage

GrammarRule is something like this (Page-Rule uses Qualifiedname-Rule)

	('basePageClass ' basePageClass=Page)

 'MODULES' '{'
	('pageClass ' pageClass=Page)

I provide a quickfix for the property pageclass where a NewClassWizardPage comes up. There I want to use the value of basePageClass for the SuperClass:

NewClassWizardPage classWizardPage = new NewClassWizardPage();

So at the end here is my Question:

How can i retrieve this value in my QuickfixProvider when the method
public void createReferenceType(final Issue issue,IssueResolutionAcceptor acceptor) is executed.

Thanks in advance
Re: Query the model of a Document [message #1021476 is a reply to message #1021170] Wed, 20 March 2013 07:23 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member

in your validation, you specify a issue key for which you register the quickfix. You can further pass string data that you need for implementing the quickfix. Use them.


Need training, onsite consulting or any other kind of help for Xtext?
Go visit or send a mail to
Previous Topic:Library of keywords, function, and method signatures
Next Topic:Parameterised Terminals?
Goto Forum:

Current Time: Mon Sep 28 07:11:53 GMT 2020

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

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

Back to the top