Community
Participate
Working Groups
The diagram editor currently catches exceptions and prints an error using System.err and printStackTrace(). It instead needs to be logging the exception in the JPADiagramEditorPlugin. You can copy the logging code from the JptJpaCorePlugin, there are for static log methods that are useful
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