Community
Participate
Working Groups
Created attachment 135484 [details] proposed patch When diagram is rendered with no workbench running, rendering of images may fail due to calls to PlatformUi.getWorkbench().getDisplay() to grab the display object for image creation. DisplayUtils.getDisplay() should be called in these cases. Attached patch fixes the problem
Created attachment 135710 [details] patch for review Hi Anthony, Apparently, I didn't do a good job on sweeping PlatformUi.getWorkbench().getDisplay() last time. Only swept places with Display.getDefault() + a fix for preferences initialization. So this patch is replacing almost all PlatformUi.getWorkbench().getDisplay() calls with DisplayUtils.getDisplay() in most of the cases. There are a few places left where workbench display is used, however, those places assume workbench running and make subsequent calls to workbench etc. Could you review this patch please?
(In reply to comment #1) > Could you review this patch please? I do not see any issues with the patch.
Fixed for 2.2
[target cleanup] 2.2 RC was the original target milestone for this bug
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug