Login | Register
My pages Projects Community openCollabNet

gef
Reply to message

* = Required fields
* Subject
* Body
Attachments
Send reply to
Topic
Author (directly in email)
Please type the letters in the image above.

Original message

Author bob.tarling@ntlworld.com
Full name bob.tarling@ntlworld.com
Date 2004-02-18 03:12:25 PST
Message Just reading through issue 1970 at ARgoUML http://argouml.tigri​s.org/issues/show_bu​g.cgi?id=1970 I've been prompted to ask a question that I've asked myself many times in the past.

Why is there a method shouldBeEnabled(boolean) on Cmd when Cmd extend AbstractAction which has the method setEnabled(boolean).

I presume this is due to GEF originally being pre Java2 where actions weren't tied to JButtons quite so easily.

I think the use of shouldBeENabled now causes extra unneeded framework complications.

AM I missing something or should these methods now be deprecated in favour of setEnabled()? Calling setEnabled should enabled/disable any button or menu item etc registered with that action.

Bob.


--------------------​--------------------​-
Email provided by http://www.ntlhome.com/



--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at gef dot tigris dot org
For additional commands, e-mail: dev-help at gef dot tigris dot org