Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EMF-IncQuery » call queries IncQuery API
call queries IncQuery API [message #1422048] Fri, 12 September 2014 08:41 Go to next message
Made Leine is currently offline Made LeineFriend
Messages: 11
Registered: September 2014
Junior Member
I have the School and School Incquery examples from your site. I'm trying to call queries by code (not running another eclipse runtime application and press the button to apply the queries. ).

I came to this:

hl.executeDemo_GenericAPI_LoadFromEIQ(schoolEcore, schoolQueries "Schhool.incquery.schoolsNames"));

I run this as a java application . I have this error:

Cannot load erroneous query specification Schhool.incquery.schoolsNames


I do not understand why . Also , I can not find where I load the emf resource . How I pass the xml resource to know what to query ?


Thank you !
Re: call queries IncQuery API [message #1422218 is a reply to message #1422048] Fri, 12 September 2014 14:01 Go to previous messageGo to next message
Gabor Bergmann is currently offline Gabor BergmannFriend
Messages: 28
Registered: July 2009
Junior Member
Hi,

Is "Schhool" misspelled, or did you really rename the package that way?
In the latter case, are you sure the pattern is free of errors when you edit it in the IDE?

> Also , I can not find where I load the emf resource . How I pass the xml resource to know what to query ?

If this question is identical to the other thread, we should continue there.

Gábor
Re: call queries IncQuery API [message #1422222 is a reply to message #1422048] Fri, 12 September 2014 14:07 Go to previous message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 342
Registered: July 2015
Senior Member
Hi Made Leine,

The LoadFromEIQ method looks for a query specification in the package Schhool.incquery.schoolsNames. I guess, the 'Schhool' is misspelled, and it should be correctly 'school' (with lowercase and a single 'h').

The fully qualified name of a pattern is determined similarly to Java classes: the container package followed by the name of the pattern.

Cheers,
Zoltán
Previous Topic:IncQuery Explorer and Xtext resources
Next Topic:how load xml emf resource using api
Goto Forum:
  


Current Time: Thu Sep 20 03:35:23 GMT 2018

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

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

Back to the top