Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Why will EModelService not find the part Toolbar?
Why will EModelService not find the part Toolbar? [message #1000705] Tue, 15 January 2013 09:47 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 257
Registered: July 2012
Senior Member
I tried to use EModelService to find the Part's Toolbar.

I failed, because searching for Tolbars or toolbar Elements returns null.



  • Why won't EModelService find the Toolbar Elements?
  • Somehwhere I heared about the difference between Model Elements and Model Attributes.
  • What is this difference?
  • How would i find the model Attributes?


Re: Why will EModelService not find the part Toolbar? [message #1000720 is a reply to message #1000705] Tue, 15 January 2013 10:11 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5470
Registered: July 2009
Senior Member
This is the same problem as discussed in other threads. The
EModelService does NOT search through the complete model but only
through the ElementContainer#children hierarchy.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=383403

This is a very annoying bug and an easy feature to implement IMHO so a
good start for a contribution.

Things to do:
a) update the find-method explaining what elements are searched
b) adding an extra method which traverses the complete model

Tom

Am 15.01.13 10:47, schrieb Alex Kipling:
> I tried to use EModelService to find the Part's Toolbar.
>
> I failed, because searching for Tolbars or toolbar Elements returns null.
>
>
>
> Why won't EModelService find the Toolbar Elements?
> Somehwhere I heared about the difference between
> http://www.vogella.com/articles/EclipseRCP/article.html#importantmodelelement_element
> and Model Attributes.
> What is this difference? How would i find the model Attributes?
>
>
>
Previous Topic:Update / refresh Part
Next Topic:Scrolling a JFace Viewer
Goto Forum:
  


Current Time: Fri Nov 28 11:31:22 GMT 2014

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

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