Have you tried the "inst" live template?

Brian Majewski
Systems Architect
Chrome Systems Corporation
[EMAIL PROTECTED]

PHONE: +1-503-963-6410 / +1-800-936-8906
FAX: +1-503-963-6312
www.chrome.com


Notice:  This e-mail transmission and/or the attachments accompanying it may
contain confidential information belonging to the sender or Chrome Systems
Corporation.  The information is only for the use of the intended recipient.
If you have received this transmission in error, please notify the sender
immediately by reply e-mail, and then destroy all copies of the
transmission.


-----Original Message-----
From: Jacques Morel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [Eap-list] #531: Surround with... on a sub expression
missing item 3


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

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

Reply via email to