Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Search] Some random questions on implementing custom model search engine
[EMF Search] Some random questions on implementing custom model search engine [message #133306] Fri, 20 February 2009 12:20 Go to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Hi,

I've been recently experimenting a bit on how to define my own model
search component using EMF Search extension points.

1) Is there something like a generic search engine? I mean, there is the
Ecore search engine implementation, but is an engine that could search
in any Ecore based model? For instance, using Ecore reflective mechanisms?

2) Are some some guidelines on how to reuse all the already available
functionality instead of creating my own implementation?

3) AbstractModelSearchParticipantArea.getSelectedFeatures() is final. I
guess I could do my own implementation but... In my case I haven't
defined any eID in my classes, so in the end I get an array of null
eStructuralFeatures. This method defines the criteria to select the list
of EStructuralFeatures where to search for the incoming query (I guess).
Is there a reason why It cannot be non-final?

I would appreciate anyone sharing their experience with the creation of
a custom model search using EMF Search.

Cheers,
Víctor.
Re: [EMF Search] Some random questions on implementing custom model search engine [message #133353 is a reply to message #133306] Fri, 20 February 2009 18:43 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
:(

After successfully implementing by hand a custom model search engine, I
realized EMF Search has a generator :(

Argh, 2 days wasted.

Cheers,
Víctor.

Víctor Roldán Betancort escribió:
> Hi,
>
> I've been recently experimenting a bit on how to define my own model
> search component using EMF Search extension points.
>
> 1) Is there something like a generic search engine? I mean, there is the
> Ecore search engine implementation, but is an engine that could search
> in any Ecore based model? For instance, using Ecore reflective mechanisms?
>
> 2) Are some some guidelines on how to reuse all the already available
> functionality instead of creating my own implementation?
>
> 3) AbstractModelSearchParticipantArea.getSelectedFeatures() is final. I
> guess I could do my own implementation but... In my case I haven't
> defined any eID in my classes, so in the end I get an array of null
> eStructuralFeatures. This method defines the criteria to select the list
> of EStructuralFeatures where to search for the incoming query (I guess).
> Is there a reason why It cannot be non-final?
>
> I would appreciate anyone sharing their experience with the creation of
> a custom model search using EMF Search.
>
> Cheers,
> Víctor.
Re: [EMF Search] Some random questions on implementing custom model search engine [message #133365 is a reply to message #133353] Fri, 20 February 2009 18:54 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Vik,

I'm not sure if you found it already, but there's a wiki:
http://wiki.eclipse.org/EMF_Search#Custom_Textual_Search_Cod e_Generation

Cheers
/Eike

----
http://thegordian.blogspot.com



Víctor Roldán Betancort schrieb:
> :(
>
> After successfully implementing by hand a custom model search engine,
> I realized EMF Search has a generator :(
>
> Argh, 2 days wasted.
>
> Cheers,
> Víctor.
>
> Víctor Roldán Betancort escribió:
>> Hi,
>>
>> I've been recently experimenting a bit on how to define my own model
>> search component using EMF Search extension points.
>>
>> 1) Is there something like a generic search engine? I mean, there is
>> the Ecore search engine implementation, but is an engine that could
>> search in any Ecore based model? For instance, using Ecore reflective
>> mechanisms?
>>
>> 2) Are some some guidelines on how to reuse all the already available
>> functionality instead of creating my own implementation?
>>
>> 3) AbstractModelSearchParticipantArea.getSelectedFeatures() is final.
>> I guess I could do my own implementation but... In my case I haven't
>> defined any eID in my classes, so in the end I get an array of null
>> eStructuralFeatures. This method defines the criteria to select the
>> list of EStructuralFeatures where to search for the incoming query (I
>> guess). Is there a reason why It cannot be non-final?
>>
>> I would appreciate anyone sharing their experience with the creation
>> of a custom model search using EMF Search.
>>
>> Cheers,
>> Víctor.


Re: [EMF Search] Some random questions on implementing custom model search engine [message #133378 is a reply to message #133365] Fri, 20 February 2009 19:09 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Indeed :(

Thanks anyway, Eike!

Eike Stepper escribió:
> Vik,
>
> I'm not sure if you found it already, but there's a wiki:
> http://wiki.eclipse.org/EMF_Search#Custom_Textual_Search_Cod e_Generation
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> Víctor Roldán Betancort schrieb:
>> :(
>>
>> After successfully implementing by hand a custom model search engine,
>> I realized EMF Search has a generator :(
>>
>> Argh, 2 days wasted.
>>
>> Cheers,
>> Víctor.
>>
>> Víctor Roldán Betancort escribió:
>>> Hi,
>>>
>>> I've been recently experimenting a bit on how to define my own model
>>> search component using EMF Search extension points.
>>>
>>> 1) Is there something like a generic search engine? I mean, there is
>>> the Ecore search engine implementation, but is an engine that could
>>> search in any Ecore based model? For instance, using Ecore reflective
>>> mechanisms?
>>>
>>> 2) Are some some guidelines on how to reuse all the already available
>>> functionality instead of creating my own implementation?
>>>
>>> 3) AbstractModelSearchParticipantArea.getSelectedFeatures() is final.
>>> I guess I could do my own implementation but... In my case I haven't
>>> defined any eID in my classes, so in the end I get an array of null
>>> eStructuralFeatures. This method defines the criteria to select the
>>> list of EStructuralFeatures where to search for the incoming query (I
>>> guess). Is there a reason why It cannot be non-final?
>>>
>>> I would appreciate anyone sharing their experience with the creation
>>> of a custom model search using EMF Search.
>>>
>>> Cheers,
>>> Víctor.
Re: [EMF Search] Some random questions on implementing custom model search engine [message #620668 is a reply to message #133306] Fri, 20 February 2009 18:43 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
:(

After successfully implementing by hand a custom model search engine, I
realized EMF Search has a generator :(

Argh, 2 days wasted.

Cheers,
Víctor.

Víctor Roldán Betancort escribió:
> Hi,
>
> I've been recently experimenting a bit on how to define my own model
> search component using EMF Search extension points.
>
> 1) Is there something like a generic search engine? I mean, there is the
> Ecore search engine implementation, but is an engine that could search
> in any Ecore based model? For instance, using Ecore reflective mechanisms?
>
> 2) Are some some guidelines on how to reuse all the already available
> functionality instead of creating my own implementation?
>
> 3) AbstractModelSearchParticipantArea.getSelectedFeatures() is final. I
> guess I could do my own implementation but... In my case I haven't
> defined any eID in my classes, so in the end I get an array of null
> eStructuralFeatures. This method defines the criteria to select the list
> of EStructuralFeatures where to search for the incoming query (I guess).
> Is there a reason why It cannot be non-final?
>
> I would appreciate anyone sharing their experience with the creation of
> a custom model search using EMF Search.
>
> Cheers,
> Víctor.
Re: [EMF Search] Some random questions on implementing custom model search engine [message #620669 is a reply to message #133353] Fri, 20 February 2009 18:54 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Vik,

I'm not sure if you found it already, but there's a wiki:
http://wiki.eclipse.org/EMF_Search#Custom_Textual_Search_Cod e_Generation

Cheers
/Eike

----
http://thegordian.blogspot.com



Víctor Roldán Betancort schrieb:
> :(
>
> After successfully implementing by hand a custom model search engine,
> I realized EMF Search has a generator :(
>
> Argh, 2 days wasted.
>
> Cheers,
> Víctor.
>
> Víctor Roldán Betancort escribió:
>> Hi,
>>
>> I've been recently experimenting a bit on how to define my own model
>> search component using EMF Search extension points.
>>
>> 1) Is there something like a generic search engine? I mean, there is
>> the Ecore search engine implementation, but is an engine that could
>> search in any Ecore based model? For instance, using Ecore reflective
>> mechanisms?
>>
>> 2) Are some some guidelines on how to reuse all the already available
>> functionality instead of creating my own implementation?
>>
>> 3) AbstractModelSearchParticipantArea.getSelectedFeatures() is final.
>> I guess I could do my own implementation but... In my case I haven't
>> defined any eID in my classes, so in the end I get an array of null
>> eStructuralFeatures. This method defines the criteria to select the
>> list of EStructuralFeatures where to search for the incoming query (I
>> guess). Is there a reason why It cannot be non-final?
>>
>> I would appreciate anyone sharing their experience with the creation
>> of a custom model search using EMF Search.
>>
>> Cheers,
>> Víctor.


Re: [EMF Search] Some random questions on implementing custom model search engine [message #620670 is a reply to message #133365] Fri, 20 February 2009 19:09 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Indeed :(

Thanks anyway, Eike!

Eike Stepper escribió:
> Vik,
>
> I'm not sure if you found it already, but there's a wiki:
> http://wiki.eclipse.org/EMF_Search#Custom_Textual_Search_Cod e_Generation
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> Víctor Roldán Betancort schrieb:
>> :(
>>
>> After successfully implementing by hand a custom model search engine,
>> I realized EMF Search has a generator :(
>>
>> Argh, 2 days wasted.
>>
>> Cheers,
>> Víctor.
>>
>> Víctor Roldán Betancort escribió:
>>> Hi,
>>>
>>> I've been recently experimenting a bit on how to define my own model
>>> search component using EMF Search extension points.
>>>
>>> 1) Is there something like a generic search engine? I mean, there is
>>> the Ecore search engine implementation, but is an engine that could
>>> search in any Ecore based model? For instance, using Ecore reflective
>>> mechanisms?
>>>
>>> 2) Are some some guidelines on how to reuse all the already available
>>> functionality instead of creating my own implementation?
>>>
>>> 3) AbstractModelSearchParticipantArea.getSelectedFeatures() is final.
>>> I guess I could do my own implementation but... In my case I haven't
>>> defined any eID in my classes, so in the end I get an array of null
>>> eStructuralFeatures. This method defines the criteria to select the
>>> list of EStructuralFeatures where to search for the incoming query (I
>>> guess). Is there a reason why It cannot be non-final?
>>>
>>> I would appreciate anyone sharing their experience with the creation
>>> of a custom model search using EMF Search.
>>>
>>> Cheers,
>>> Víctor.
Previous Topic:diagram export to image
Next Topic:[Servus] What is the status of the proposal
Goto Forum:
  


Current Time: Sat Apr 20 05:55:30 GMT 2024

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

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

Back to the top