Ctrl-Shift-F7 - works with "try". How about "throws" ?

One of the recent features added to Aurora is an ability to show where an exception is thrown inside the try-catch block. One has to stand on "try" with cursor and press Ctrl-Shift-F7 ("Highlight Usages"). Very cool.

Unfortunately, it doesn't work with method "throws" statement. I was so used to press Ctrl-Shift-F7 and see where an exception is thrown .. But if I'd like to see where an exception declared to be thrown by the method is really thrown inside it - I can't. I mean, I can remove the "throws XYX" clause and the throwing line will be underlined but it's not consistent with the "try" feature described above (which could also be solved by commenting out the "catch" block).

So, I think to be consistent - Aurora should mark the places where a declared exception is thrown when I stand on the XYZ part of "throws XYZ" and press Ctrl-Shift-F7.

What do other people think ?

2 comments
Comment actions Permalink

One of the recent features added to Aurora is an
ability to show where an exception is thrown inside
the try-catch block. One has to stand on "try" with
cursor and press Ctrl-Shift-F7 ("Highlight Usages").
Very cool.


Tip: it works with the catch keyword, too.

So, I think to be consistent - Aurora should mark the
places where a declared exception is thrown when I
stand on the XYZ part of "throws XYZ" and press
Ctrl-Shift-F7.


It works for me in 896. Put the cursor on throws, not on XYZ (which will highlight usages of that XYZ in the class, as it should) and then type CTRL-SHIFT-F7. For me, a small popup menu appears titled "Choose Exception Classes to Highlight". Choosing one does exactly what you want.

0
Comment actions Permalink

Yeap, works like a charm .. Thank you !

0

Please sign in to leave a comment.