Time for action – catching exceptions
Although it's easy to put a breakpoint in the catch
block, this is merely the location where the failure was ultimately caught, not where it was caused. The place where it was caught can often be in a completely different plug-in from where it was raised, and depending on the amount of information encoded within the exception (particularly if it has been transliterated into a different exception type) may hide the original source of the problem. Fortunately, Eclipse can handle such cases with a Java Exception Breakpoint.
- Introduce a bug into the execute method of the
SampleHandler
class, by adding the following just before theMessageDialog.openInformation()
call:window = null;
- Click on the hello world icon. ...
Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.