Skip to main content



      Home
Home » Eclipse Projects » Eclipse Hawk » Making queries programatically(Using hawk from standalone java)
Making queries programatically [message #1814734] Tue, 17 September 2019 04:56 Go to next message
Eclipse UserFriend
Hi,

Is there a way to run Hawk programmatically? Mainly interested in queries, but having access to index status, adding metamodels, and other hawk features could be advantageous too.
Re: Making queries programatically [message #1815104 is a reply to message #1814734] Wed, 25 September 2019 09:13 Go to previous messageGo to next message
Eclipse UserFriend
Figured it out; following the tests in the project I found that I have to instantiate a new IModelIndexer, initializate it with the correct resource factories, query engines, model updaters and such.
Re: Making queries programatically [message #1815176 is a reply to message #1815104] Thu, 26 September 2019 15:19 Go to previous message
Eclipse UserFriend
Yes, the tests in the project are a good reference on how to use Hawk programmatically. You could also run a Hawk server, and use it through its Thrift API. More info for that is here:

https://github.com/mondo-project/mondo-hawk/wiki/Thrift-API
Previous Topic:Indexing custom EMF Resources
Next Topic:Multiple synchroniseEnd events while indexing git repository
Goto Forum:
  


Current Time: Fri Apr 25 15:55:49 EDT 2025

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

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

Back to the top