Fix Graphic is disposed issue cause by statif FontManager
diff --git a/bundles/org.eclipse.rap.gef/src/org/eclipse/gef/ui/palette/FlyoutPaletteComposite.java b/bundles/org.eclipse.rap.gef/src/org/eclipse/gef/ui/palette/FlyoutPaletteComposite.java
index 3682e67..76f0335 100644
--- a/bundles/org.eclipse.rap.gef/src/org/eclipse/gef/ui/palette/FlyoutPaletteComposite.java
+++ b/bundles/org.eclipse.rap.gef/src/org/eclipse/gef/ui/palette/FlyoutPaletteComposite.java
@@ -105,7 +105,12 @@
  */
 public class FlyoutPaletteComposite extends Composite {
 
-	private static final FontManager FONT_MGR = new FontManager();
+	// RAP [am] using static here can result in Graphic is disposed issue in RAP
+	// as Font retrieved from JFace registry are disposed at the end of the
+	// session
+	// private static final FontManager FONT_MGR = new FontManager();
+	private final FontManager FONT_MGR = new FontManager();
+	// ENDRAP
 
 	private static final String PROPERTY_PALETTE_WIDTH = "org.eclipse.gef.ui.palette.fpa.paletteWidth"; //$NON-NLS-1$
 	private static final String PROPERTY_STATE = "org.eclipse.gef.ui.palette.fpa.state"; //$NON-NLS-1$
@@ -237,6 +242,14 @@
 		});
 	}
 
+	// RAP [am] we need to dispose FONT_MGR
+	public void dispose() {
+		FONT_MGR.dispose();
+		super.dispose();
+	}
+
+	// ENDRAP
+
 	private void addListenerToCtrlHierarchy(Control parent, int eventType,
 			Listener listener) {
 		parent.addListener(eventType, listener);