Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » IMenuListener
IMenuListener [message #12579] Tue, 27 March 2007 06:59 Go to next message
Eclipse UserFriend
Hi,
is it possible for You to make the IMenuListener work? I need it to update
the action state as the menu gets shown.

Regards,

Markus
Re: IMenuListener [message #12684 is a reply to message #12579] Tue, 27 March 2007 14:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Markus,

the basic prerequisite for this to work is that RWT MenuListeners are in
place. Those are on Ralfs TODO list and thus should be there in the near
future.
It shouldn't be hard to make IMenuListener work once the RWT menu events
are in place.

Regards,
Rüdiger

Markus Krüger wrote:
> Hi,
> is it possible for You to make the IMenuListener work? I need it to update
> the action state as the menu gets shown.
>
> Regards,
>
> Markus
>
>
Re: IMenuListener [message #13747 is a reply to message #12684] Thu, 29 March 2007 05:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Markus,

you can now use IMenuListener to enable/disable actions. However, we
still have a problem in qooxdoo that breaks the menu layout when
MenuItems are added after the menu has been once shown. Therefore you
still can't add actions in the IMenuListener properly. I hope it helps
you anyway.

Regards,
Ralf

Rüdiger Herrmann schrieb:
> the basic prerequisite for this to work is that RWT MenuListeners are in
> place. Those are on Ralfs TODO list and thus should be there in the near
> future.
> It shouldn't be hard to make IMenuListener work once the RWT menu events
> are in place.
>
> Regards,
> Rüdiger
>
> Markus Krüger wrote:
>> Hi,
>> is it possible for You to make the IMenuListener work? I need it to
>> update the action state as the menu gets shown.
>>
>> Regards,
>>
>> Markus
>>
Re: IMenuListener [message #13768 is a reply to message #13747] Thu, 29 March 2007 05:56 Go to previous messageGo to next message
Eclipse UserFriend
That's great, I can work with that.

Thank You,

Markus

"Ralf Sternberg" <rsternberg@innoopract.com> schrieb im Newsbeitrag
news:eug2bi$m0m$1@build.eclipse.org...
> Hi Markus,
>
> you can now use IMenuListener to enable/disable actions. However, we still
> have a problem in qooxdoo that breaks the menu layout when MenuItems are
> added after the menu has been once shown. Therefore you still can't add
> actions in the IMenuListener properly. I hope it helps you anyway.
>
> Regards,
> Ralf
>
> R
Re: IMenuListener [message #13807 is a reply to message #13768] Thu, 29 March 2007 06:19 Go to previous messageGo to next message
Eclipse UserFriend
I got two Issues:

1. May it be possible that the menu is no redrawn evertime it gets shown? Is
this correct this way? I assume this because as I click on a menu I first
see three dots "..." for a very short time and then my actions.
2. My context menu on a treeviewer now has no more actions!

Best regards,

Markus

"Markus Kr
Re: IMenuListener [message #14401 is a reply to message #13807] Thu, 29 March 2007 06:57 Go to previous messageGo to next message
Eclipse UserFriend
The second issue was an error in my code as I added menu items to menu
instead of actions to menu manager.

But I have a new Issue:
In IE7 the menu now is too small and the text overlaps the menu area. In
IE6+Firefox everything works well.

Regards,

Markus

"Markus Kr
Re: IMenuListener [message #14428 is a reply to message #14401] Thu, 29 March 2007 07:02 Go to previous messageGo to next message
Eclipse UserFriend
That was weird. After a couple of refreshs it now works correctly for IE7.

So only issue left:
>> 1. May it be possible that the menu is no redrawn evertime it gets shown?
>> Is this correct this way? I assume this because as I click on a menu I
>> first see three dots "..." for a very short time and then my actions.

Thanks,

Markus

"Markus Kr
Re: IMenuListener [message #14488 is a reply to message #13807] Thu, 29 March 2007 07:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Markus,

Markus Krüger schrieb:
> 1. May it be possible that the menu is no redrawn evertime it gets shown? Is
> this correct this way? I assume this because as I click on a menu I first
> see three dots "..." for a very short time and then my actions.

When a MenuListener is registered to a Menu, an AJAX request must be
sent before the menu is shown to allow the listener to do take its
actions. Until the response is received, only one preliminary menu item
is shown ("...") to show the user that the menu is loading.

Showing the entire menu before the response comes back would show the
menu in an inconsistent state for a short time, e.g. with some items
still enabled that are then disabled by the menu listener.

I think the preliminary item is a good compromise between correctness
and responsiveness. Or do you think it disturbs users?

Regards,
Ralf
Re: IMenuListener [message #14517 is a reply to message #14488] Thu, 29 March 2007 07:53 Go to previous messageGo to next message
Eclipse UserFriend
Thant's not a problem. Just thought it may be a bug since it also happens if
I do not register a menu listener, but maybe you add some default menu
listerner.
That woul explain why it behaves this way although I did not register a menu
listener.

Thanks for the answer.,

Markus

P.s.: You guys do a really good job with RAP! Maybe I can give you a
Demoaccess to my RAP application somtime to show what my questions were all
about.

"Ralf Sternberg" <rsternberg@innoopract.com> schrieb im Newsbeitrag
news:eug8nl$c97$1@build.eclipse.org...
> Hi Markus,
>
> Markus Kr
Re: IMenuListener [message #14578 is a reply to message #14517] Thu, 29 March 2007 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Markus Krüger schrieb:
> Thant's not a problem. Just thought it may be a bug since it also happens if
> I do not register a menu listener, but maybe you add some default menu
> listerner.

Not we, but JFace does. A plain RWT Menu only waits if a MenuListener is
set. But the JFace MenuManager always adds one. Hence, in the Workbench
every menu has that behavior now. I guess we have to live with that so far.

Thanks for your feedback,
Ralf
Re: IMenuListener [message #14638 is a reply to message #14517] Thu, 29 March 2007 11:19 Go to previous message
Eclipse UserFriend
Originally posted by: jkrause.innoopract.com

Thanks for the positive feedback! And I would love to see your
application at work. If you can't make it public I would be happy to
receive a private email as well.

Jochen


Markus Krüger wrote:
> Thant's not a problem. Just thought it may be a bug since it also happens if
> I do not register a menu listener, but maybe you add some default menu
> listerner.
> That woul explain why it behaves this way although I did not register a menu
> listener.
>
> Thanks for the answer.,
>
> Markus
>
> P.s.: You guys do a really good job with RAP! Maybe I can give you a
> Demoaccess to my RAP application somtime to show what my questions were all
> about.
>
> "Ralf Sternberg" <rsternberg@innoopract.com> schrieb im Newsbeitrag
> news:eug8nl$c97$1@build.eclipse.org...
>> Hi Markus,
>>
>> Markus Krüger schrieb:
>>> 1. May it be possible that the menu is no redrawn evertime it gets shown?
>>> Is this correct this way? I assume this because as I click on a menu I
>>> first see three dots "..." for a very short time and then my actions.
>> When a MenuListener is registered to a Menu, an AJAX request must be sent
>> before the menu is shown to allow the listener to do take its actions.
>> Until the response is received, only one preliminary menu item is shown
>> ("...") to show the user that the menu is loading.
>>
>> Showing the entire menu before the response comes back would show the menu
>> in an inconsistent state for a short time, e.g. with some items still
>> enabled that are then disabled by the menu listener.
>>
>> I think the preliminary item is a good compromise between correctness and
>> responsiveness. Or do you think it disturbs users?
>>
>> Regards,
>> Ralf
>
>
Previous Topic:new ViewAction Extension
Next Topic:populate ComboViewer
Goto Forum:
  


Current Time: Sun Apr 27 01:11:47 EDT 2025

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

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

Back to the top