| Summary: | Diagram Editor needs to log error messages instead of using System.err and printStackTrace | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> | ||||||||
| Component: | Diagram Editor | Assignee: | Bistra Yakimova <bistra.yakimova> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Stefan Dimov <stefan.dimov> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | cbridgha, neil.hauge, petya.sabeva, tranle1 | ||||||||
| Version: | 3.0 | Flags: | stefan.dimov:
pmc_approved?
(david_williams) stefan.dimov: pmc_approved? (raghunathan.srinivasan) stefan.dimov: pmc_approved? (naci.dai) stefan.dimov: pmc_approved? (deboer) stefan.dimov: pmc_approved? (neil.hauge) stefan.dimov: pmc_approved? (kaloyan) cbridgha: pmc_approved+ stefan.dimov: review+ neil.hauge: review+ |
||||||||
| Target Milestone: | 3.0 RC1 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | PMC_approved | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Karen Butzke
Created attachment 194725 [details]
Patch with log error messages instead of System.err and printStackTrace
Created attachment 195302 [details]
Patch proposal
Neil, do you think it's worth to get in Indigo? The change is relatively big, but it concerns only exception handling. I think this is worth trying to get in. Yeah, me too. I'll have it tested 'till tomorrow ... Created attachment 195477 [details]
exception logging improved
The first patch is fine, but there was a small incompatibility - result of the previous submit (of another patch), so I'm submitting a second version
Every Eclipse plugin is supposed to be aligned with the Eclipse standards and guidelines. In this particular case this means that the diagram editor should log errors and exceptions just like any other plugin. I've performed a manual sanity check to see if the diagram could be open, created, manipulated, changed and closed. All the existing JUnit tests are passing successfully. Also, I've reviewed every single line of the patch visually in order to check that it affects logging only. There were a few new logging methods added in JPADiagramEditorPlugin. All the other changes affect the logging - calling the new methods in JPADiagramEditorPlugin instead of printing the stack trace and no existing functionality was changed. The risk is low. Changes are good - thanks Patch committed for rc1 |