+1, and +5 for Code Layout for this. boolean b = (a != b) || (c != d) && (b > c); - this layouted to boolean b = (c != d && b > c) || a != b; But this very hart to code :) Becose you need code validator for squares prioritets.
-----Original Message----- From: Jacques Morel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 6:06 PM To: [EMAIL PROTECTED] Subject: RE: [Eap-features] Boolean refactoring +1 nice -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Thomas Singer Sent: Tuesday, March 19, 2002 1:20 AM To: [EMAIL PROTECTED] Subject: Re: [Eap-features] Boolean refactoring +5 I requested this 2 or 3 months ago. Tom At 19:33 18.03.02 -0800, you wrote: >I think the ability to refactor (invert) boolean expressions would be useful: > >boolean noLineBreaks = string.indexOf('\n') == -1 && string.indexOf('\r') >== -1; > >into > >boolean lineBreaks = string.indexOf('\n') != -1 || string.indexOf('\r') != -1; > >I don't care about the variable portion, but it would be nice to be able >to select the portion on the other side of the equals operator and choose >"Refactor | Invert" or such. This might be something that is very >difficult to implement. If that is the case, then forget it. > >Kirk _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-features _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-features _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-features
