|
|
|
Re: How to add EMF Index Plugins? [message #621042 is a reply to message #137481] |
Mon, 22 June 2009 07:37 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
Hi Sakith
note that currently EMF Index is quite preliminary and may change
drastically in the near future.
Here is how it currently works:
1) You enable indexing by adding the EMF Index nature to the projects
containing your models.
2) You configure the kind of information that should be extracted and
indexed by implementing a ResourceIndexer. You can inherit from the
ResourceIndexerImpl that already provides protected methods for the
interesting hooks. Your resource indexer has to be registered to the
org.eclipse.emf.index.indexer extension point.
3) You get a hold on the current index store by means of
org.eclipse.emf.index.ui.internal.EmfIndexUIPlugin.getDefaul t().getIndexStore()
4) Queries are created using the appropriate DAO, e.g.
indexStore.eObjectDAO().createQuery().name("objName")
The rest should be easy to figure out yourself.
Regards
Jan
sajith weerakoon schrieb:
> Hi All,
>
> I am a GSOC student and I am working on Open Metadata Search. Please
> visit the following link if you are required any information about the
> project.
>
> http://wiki.eclipse.org/Open_Metadata_Search
>
> My target is to register the EMF models for JavaEE which I can find in
> the WTP in the EMF Index and call search operations.
>
> I have already set up the wtp and looking forward to add the index
> plugins into my plugin project. I have the problem of how to add these
> index plugins into my plugin project.
> Please be kind enough to help me in adding these index plugins.
> Thanks in advance.
>
> Regards,
> Sajith.
>
>
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
|
Powered by
FUDForum. Page generated in 0.04027 seconds