Skip to content

Commit

Permalink
[GEF] FigureUtilities uses a Shell with no style
Browse files Browse the repository at this point in the history
- Set the style to SWT.NONE to stop the Shell momentarily appearing when the workbench theme changes

- See https://bugs.eclipse.org/bugs/show_bug.cgi?id=435915
  • Loading branch information
Phillipus committed Jul 11, 2024
1 parent 11ca641 commit 888e1fe
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import java.util.ArrayList;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontMetrics;
Expand Down Expand Up @@ -72,7 +73,10 @@ public static FontMetrics getFontMetrics(Font f) {
*/
protected static GC getGC() {
if (gc == null) {
gc = new GC(new Shell());
// Phillipus set this to SWT.NONE to stop this Shell momentarily appearing when the workbench theme changes
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=435915
//gc = new GC(new Shell());
gc = new GC(new Shell(SWT.NONE));
appliedFont = gc.getFont();
}
return gc;
Expand Down

0 comments on commit 888e1fe

Please sign in to comment.