Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » EModelService findElement()
EModelService findElement() [message #888870] Mon, 18 June 2012 14:26 Go to next message
Jonas Helming is currently offline Jonas Helming
Messages: 422
Registered: July 2009
Senior Member
Hi,
the method EModelService#findElement (all different signatures) does
only follow selected paths in the containment tree of the application
model. Generally it follows the children feature of MElementContainer
and some specialities such as the window trim. However, it does not find
a menu contained in a window. Would it make sense to change the
implementation to follow all containment features and exclude some
things if there is a specified search path?
Cheers
Jonas
Re: EModelService findElement() [message #889806 is a reply to message #888870] Tue, 19 June 2012 13:26 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de Alwis
Messages: 242
Registered: July 2009
Senior Member
I think if we expand the definition of findElement to include menus, then someone will want toolbars next, and pretty soon findElement is the equivalent of EcoreUtil.getAllContents().

Have you considered looking at an XPath-like query mechanism ke JXPath? I think Tom Schindl has a patch around to do some integration.

Brian.
Re: EModelService findElement() [message #891550 is a reply to message #889806] Mon, 25 June 2012 04:25 Go to previous message
Lars Vogel is currently offline Lars Vogel
Messages: 1049
Registered: July 2009
Senior Member

Hi,

I see no reason why findElements should not be able to find all elements. I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=383403, lets see what Eric thinks.

Best regards, Lars
Previous Topic:Ignore CSS for some Widgets
Next Topic:e4 annotations disappearing (Syntax is a monda)
Goto Forum:
  


Current Time: Fri Aug 29 10:17:41 EDT 2014

Powered by FUDForum. Page generated in 0.06007 seconds