Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » (no subject)
(no subject) [message #687256] Wed, 25 May 2011 17:46
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi Benedikt,

Yes you are right ideally the way is to load the resources, index it and then unload the resources.But the Index should be only updated inside the UpdateCommand

Yes through QueryContext's resource scope you can specify the scope under which you want your query to perform.For example you know the results will come from resource b or you only want to query resource b you can pass that particular resource in the resource scope.

And i am sorry i mistook the QueryCommand.I confused the Index Query with the Query2 query.So this querycommand is actually to query the indexes.As you know three kind of Index queries are supported.ResourceQuery, EObjectQuery and EReferenceQuery.So each of these queries are executed inside the QueryCommand.

An example of resource query would be when you want to fetch all the resources indexed in the Index as you have provided in your code.

No it wont create any problems if Model Query1 is pre-installed.Query2 is independent of Query1.

The Query2 APIs are very stable.As you can see almost all the APIs and scenarios are tested through JUnits.

Please let me know if you have further questions.

Cheers,
Saurav
--
My Blog http://codifyit.blogspot.com/
Follow me: http://twitter.com/sauravs


Previous Topic:[CDO] Exception when in an observable. (Databinding).
Next Topic:(no subject)
Goto Forum:
  


Current Time: Fri Apr 19 23:46:40 GMT 2024

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

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

Back to the top