Bug 529198 - refactored toggleBreakpoints(IWorkbenchPart,ISelection)

Split toggleBreakpoints() method in three parts and fixed some possible
NPE's. To simplify code and allow context error to be logged, changed
JDIDebugUIPlugin.logErrorMessage(String) to log(String, Throwable).
Beside this no functional changes.

Change-Id: If1c982a64e3f4d89996e2dc1015d2d15844a58c1
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2 files changed