Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Hawk » Making queries programatically(Using hawk from standalone java)
Making queries programatically [message #1814734] Tue, 17 September 2019 08:56 Go to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 242
Registered: October 2009
Location: Mexico
Senior Member

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.


Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
Re: Making queries programatically [message #1815104 is a reply to message #1814734] Wed, 25 September 2019 13:13 Go to previous messageGo to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 242
Registered: October 2009
Location: Mexico
Senior Member

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.

Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
Re: Making queries programatically [message #1815176 is a reply to message #1815104] Thu, 26 September 2019 19:19 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 597
Registered: January 2010
Location: Birmingham, UK
Senior Member

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: Mon Jun 24 11:14:10 GMT 2024

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

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

Back to the top