Skip to main content



      Home
Home » Archived » EMF-IncQuery » call queries IncQuery API
call queries IncQuery API [message #1422048] Fri, 12 September 2014 04:41 Go to next message
Eclipse UserFriend
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 10:01 Go to previous messageGo to next message
Eclipse UserFriend
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 10:07 Go to previous message
Eclipse UserFriend
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 Jul 10 09:26:06 EDT 2025

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

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

Back to the top