Home » Language IDEs » Java Development Tools (JDT) » Surround with try/catch block, NOT
Surround with try/catch block, NOT [message #57990] |
Sun, 15 June 2003 20:43  |
Eclipse User |
|
|
|
Originally posted by: oshteynbuk.nyc.rr.com
under source menu there is "Surround with try/catch block" but I could
not find remove try/catch or unSurround the same way as comment and
uncomment selected lines of code, is it hidden somewhere or just not
implemented?
thanks,
oleg
|
|
| | | | | | | | | |
Re: Surround with try/catch block, NOT [message #61010 is a reply to message #58186] |
Wed, 18 June 2003 10:44  |
Eclipse User |
|
|
|
Additionally you can convert a valid catch block into a throws declaration
using quick assist.
Position the cursor inside the catch block and press Ctrl+1.
Dirk
"Tom Eicher" <tom.eicher@gmx.ch.nodomain> wrote in message
news:bcjr7j$g8v$1@rogue.oti.com...
> When a catch clause becomes illegal (ie. catches a checked exception that
is
> not thrown), there is a quick fix "remove catch clause", but its only
> available inside the catch clause, and only for checked exceptions. I
added
> a bug report about this, see
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=38932
>
> -tom
>
> BTW: try catch blocks can be nested - they should not be addable only once
> (imagine a catch clause throwing exceptions).
>
> "oleg shteynbuk" <oshteynbuk@nyc.rr.com> wrote in message
> news:bcj3fa$2pc$1@rogue.oti.com...
> > under source menu there is "Surround with try/catch block" but I could
> > not find remove try/catch or unSurround the same way as comment and
> > uncomment selected lines of code, is it hidden somewhere or just not
> > implemented?
> >
> > thanks,
> >
> > oleg
> >
> >
> >
>
>
|
|
|
Goto Forum:
Current Time: Wed Apr 30 16:13:10 EDT 2025
Powered by FUDForum. Page generated in 0.09504 seconds
|