Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Textual Search Generation, problem of result selection
Textual Search Generation, problem of result selection [message #129863] Tue, 23 September 2008 14:52 Go to next message
Julien Roux is currently offline Julien RouxFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

I am using the EMF textual search generation with my ecore models (great
tool !!). Everything works well, the 2 plugins are generated (search and
searchUI) and the search is working. But when I double-click on a result
item in the result search page, the corresponding element is not selected
in the ecore editor.

It seems that it doesn't work because in the treeviewer of my ecore
editor, the objects are wrapped in FeatureMapEntryWrapperItemProvider
objects, so the results of the search can't be compared to these wrapper
objects.

Does anyone knows how to solve this problem ?

Thanks for your help,

Julien
Re: Textual Search Generation, problem of result selection [message #129877 is a reply to message #129863] Wed, 24 September 2008 14:52 Go to previous message
Julien Roux is currently offline Julien RouxFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

I found a solution for my problem. It seems that the wrap objects
FeatureMapEntryWrapperItemProvider are created when a child of an EObject
is an EAttribute. To be able to select such an object in the treeviewer, i
provided an IElementComparer to the treeviewer, that is able to extract
the value of the wrap object and compare it with an unwrapped object.

Julien
Re: Textual Search Generation, problem of result selection [message #620324 is a reply to message #129863] Wed, 24 September 2008 14:52 Go to previous message
Julien Roux is currently offline Julien RouxFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

I found a solution for my problem. It seems that the wrap objects
FeatureMapEntryWrapperItemProvider are created when a child of an EObject
is an EAttribute. To be able to select such an object in the treeviewer, i
provided an IElementComparer to the treeviewer, that is able to extract
the value of the wrap object and compare it with an unwrapped object.

Julien
Previous Topic:Textual Search Generation, problem of result selection
Next Topic:Search generation problems
Goto Forum:
  


Current Time: Sun May 31 14:31:09 GMT 2020

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

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

Back to the top