Skip to main content


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 18:26 Go to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
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 17:26 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
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 08:25 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
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 Apr 19 16:53:42 GMT 2024

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

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

Back to the top