How to add EMF Index Plugins? [message #137481] |
Sun, 21 June 2009 23:41  |
Eclipse User |
|
|
|
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.
|
|
|
|
Re: How to add EMF Index Plugins? [message #137539 is a reply to message #137495] |
Tue, 23 June 2009 11:25  |
Eclipse User |
|
|
|
Hi Jan,
Thanks a lot for your valuable information. I will try to work this out.
Sajith
Jan KÂoehnlein wrote:
> 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.
>>
>>
|
|
|
Re: How to add EMF Index Plugins? [message #621042 is a reply to message #137481] |
Mon, 22 June 2009 03:37  |
Eclipse User |
|
|
|
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.
>
>
|
|
|
Re: How to add EMF Index Plugins? [message #621046 is a reply to message #137495] |
Tue, 23 June 2009 11:25  |
Eclipse User |
|
|
|
Hi Jan,
Thanks a lot for your valuable information. I will try to work this out.
Sajith
Jan KÂoehnlein wrote:
> 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.
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.06275 seconds