Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » MUIElement from wrong Context passed to control(Control should receive its specific MUIElement not some top level one)
MUIElement from wrong Context passed to control [message #1698416] Mon, 15 June 2015 12:31 Go to next message
Krzysztof Szymanek is currently offline Krzysztof SzymanekFriend
Messages: 9
Registered: June 2015
Junior Member
I have MToolControl and add it using EModelService to specific Toolbar. I use contributionUri to provide presentation class. In this class I expect to be able to obtain MUIElement specific to the place where I put presentation.

Using below code as a MUIElement I receive TrimmedWindowImpl but I should receive MToolControl.

    @PostConstruct
    public void createGui( Group group, MUIElement el )


Why I receive class which is 2 levels up the hierarchy (trimmed window -> toolbar -> toolbarControl)?
Re: MUIElement from wrong Context passed to control [message #1698462 is a reply to message #1698416] Mon, 15 June 2015 19:16 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Fixed with the next nightly build should have the fix

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

Tom

On 15.06.15 20:02, Krzysztof Szymanek wrote:
> I have MToolControl and add it using EModelService to specific Toolbar.
> I use contributionUri to provide presentation class. In this class I
> expect to be able to obtain MUIElement specific to the place where I put
> presentation.
>
> Using below code as a MUIElement I receive TrimmedWindowImpl but I
> should receive MToolControl.
>
>
> @PostConstruct
> public void createGui( Group group, MUIElement el )
>
>
> Why I receive class which is 2 levels up the hierarchy (trimmed window
> -> toolbar -> toolbarControl)?
Re: MUIElement from wrong Context passed to control [message #1698497 is a reply to message #1698462] Tue, 16 June 2015 05:38 Go to previous message
Krzysztof Szymanek is currently offline Krzysztof SzymanekFriend
Messages: 9
Registered: June 2015
Junior Member
Thank you Thomas Smile
Previous Topic:Howto pass parameter to contribution class
Next Topic:New window on different screen
Goto Forum:
  


Current Time: Fri Apr 26 19:38:38 GMT 2024

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

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

Back to the top