Yes, you are right from the internal point of view. But if I select b2 || b3, I can say, it's a valid expression, so I would expect to get some entries in the popup menu, that allow me to change this (boolean) expression:
() !() Even extract method or create variable should work, based upon the selected expression. Tom At 22:57 12.02.02 +0100, you wrote: >On Tue, 2002-02-12 at 21:43, Jason Boehle wrote: > > > If I select the expression "b1 || b2", hit Ctrl+Alt+T, it works as > expected. > > If I select the expression "b1 || b2 || b3", hit Ctrl+Alt+T, it works as > > expected. If I select the expression "b2 || b3", hit Ctrl+Alt+T, I get no > > pop-up menu. Why? > >The parse tree for the expression is: > > or > / \ > / \ > or b3 > / \ > / \ > b1 b2 > >"b1 || b2 || b3" corresponds to a node in the tree. "b1 || b2" is also >a node in the tree. But "b2 || b3" corresponds to two separate branches >in the tree. It is not a valid subexpression. > >At least I imagine this is the reason, together with the fact that IDEA >wants to present context-dependent alternatives depending on the >expression or statement you're surrounding with something. For a less >intelligent editor that viewed "surround with" simply as "add some text >before and after whatever happens to be selected" this would not be a >problem... _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
