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
Hello

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:

Application(someid){
   PROPERTIES{
      basePageClass com.mycompany.RootPage
   }
   MODULES{
     dashboard{
	pageClass com.mycompany.modulepages.DashboardPage
     }
}


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

Properties:
  'PROPERTIES' '{'
	('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();
classWizardPage.setSuperClass(PROPERTY_FROM_BASPAGECLASS,true);


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
Toni
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
Hi,

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.

Alex


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


Current Time: Tue Apr 23 11:35:13 GMT 2024

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

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

Back to the top