|
|
|
Re: Inject the MMenu in a Handler [message #761418 is a reply to message #761399] |
Tue, 06 December 2011 12:58 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Hi,
Hm looking at the code I see that the renderer hooks itself up
visibility changes. Now my wild guess that the case for the Root-Menu
(==MenuBar on the Shell) is not implemented.
I'd suggest to file a bug for this so that we can track why your code is
not working.
Tom
Am 06.12.11 13:31, schrieb ThomasK:
> Hi Tom,
>
> ok, i've tried the following suggestion:
>
>
> @Execute
> public void execute(MApplication application, EModelService service){
> //myTrimmedWindow
> List<MTrimmedWindow> findElements =
> service.findElements(application, "myTrimmedWindow",
> MTrimmedWindow.class, null);
> findElements.get(0).getMainMenu().setVisible(false);
> findElements.get(0).getMainMenu().setEnabled(false);
> }
>
>
> the Window is there, the MainMenu too. but none of the both methods
> (setVisible & setEnable) works. do i miss something?
>
> thank you for your help :)
|
|
|
|
Powered by
FUDForum. Page generated in 0.02865 seconds