Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » EModelService findElement()
EModelService findElement() [message #888870] Mon, 18 June 2012 14:26 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 23 06:24:42 EDT 2025

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

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

Back to the top