Hello Ash, > It does not need to check each caret move. It only needs to > check when the refactor menu is displayed.
I don't know, whether IntelliJ uses Swing Actions for the refactoring menu items, but if they do, they are able to put these in tool bars, too. And if they are in the tool bar, you would like to get immediate enabling/disabling, too. Summary: if actions are used, they must be bound to caret moves (maybe with a very small delay) for context sensitive enabling/disabling and this could become a VERY expensive operation for the refactoring actions. > > 2) If an action is grayed out, IDEA can't give you a clue, what it > > would expect. Currently it can tell you, what it needs. > > Agree that this is useful. > Perhaps the disabled menu items could display tool tips with > this information. This is an important point. A lot of users find it very useful, that IDEA can give verbal hints, why an operation fails. Generally I like and practisize the context sensitive enabling/disabling of actions, too, but one always has to keep in mind, that it will not work if the detection, whether an action is appliable, is an expensive operation. Therefor my negative votes for making the refactoring menu items context sentible. Tom On Thu, 18 Jul 2002 17:28:30 +0100, "Searle, Ash" <[EMAIL PROTECTED]> wrote: > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: 18 July 2002 16:39 > > To: [EMAIL PROTECTED] > > Subject: [Eap-features] Re: Refactoring menu context sensitive! > > > > > > There are two problems: > > 1) It is a time-consuming task to check for each caret move to check, > > what action is appliable. > > It does not need to check each caret move. It only needs to > check when the refactor menu is displayed. > > > 2) If an action is grayed out, IDEA can't give you a clue, what it > > would expect. Currently it can tell you, what it needs. > > Agree that this is useful. > Perhaps the disabled menu items could display tool tips with > this information. > > > That's why: -10 > > I'll counter with a +10. I strongly dislike the > all the refactorings appearing to be available when they're not. _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-features
