Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » How to add EMF Index Plugins?
How to add EMF Index Plugins? [message #137481] Mon, 22 June 2009 03:41 Go to next message
sajith weerakoon is currently offline sajith weerakoonFriend
Messages: 15
Registered: July 2009
Junior Member
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 #137495 is a reply to message #137481] Mon, 22 June 2009 07:37 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
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
Re: How to add EMF Index Plugins? [message #137539 is a reply to message #137495] Tue, 23 June 2009 15:25 Go to previous message
sajith weerakoon is currently offline sajith weerakoonFriend
Messages: 15
Registered: July 2009
Junior Member
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 07:37 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
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
Re: How to add EMF Index Plugins? [message #621046 is a reply to message #137495] Tue, 23 June 2009 15:25 Go to previous message
sajith weerakoon is currently offline sajith weerakoonFriend
Messages: 15
Registered: July 2009
Junior Member
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.
>>
>>
Previous Topic:Error while programmatically mergin two models
Next Topic:[Announce] EMFT MWE 0.7.0 is available
Goto Forum:
  


Current Time: Sat Apr 27 03:31:07 GMT 2024

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

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

Back to the top