Why not include an (expr instanceof Type) I wonder? I do have code that only gets done 
if the expr is of the type:

   if (ex instanceof IOException) throw (IOException) ex;

Cudos for the smart completion of ((Type)expr) when I cast ex after the throw! You got 
a whaaoo on this one from the team ;-)

Jacques
-----Original Message-----
From: Valentin Kipiatkov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: [Eap-list] #531: Surround with... on a sub expression missing item 3


The full list of "Surround with" choices for an expression is:

      "(expr)",
      "((Type)expr)",
      "!(expr)",
      "!(expr instanceof Type)",
      "if (expr) {...}",
      "if (expr) {...} else {...}",

Obviously, "!(expr)" is not applicable to expressions with type other than
boolean. That's why it's not shown.
The digit for each item is kept the same because users get accustomed to
press the same key each time, undependently of available choices.

Best regards,
Valentin Kipiatkov
-----------------------------------------------------------
 IntelliJ Software, http://www.intellij.com/
 "Develop with pleasure"
-----------------------------------------------------------

----- Original Message -----
From: "Jacques Morel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 7:07 PM
Subject: [Eap-list] #531: Surround with... on a sub expression missing item
3


> Example
>
> if (getSomething())
>
> I select getSomething() and do Surround with... (Ctr-Alt-T)
> The list comes up with only 3 items:
>
> 1 (exp)
> 2 ((Type)exp)
> 4 (!exp instanceof Type)
>
> Where is 3? Should it be (exp instanceof Type) ?
>
>
>
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list




_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to