Backport changes from GEF in RCP
diff --git a/bundles/org.eclipse.rap.gef/src/org/eclipse/gef/ui/parts/GraphicalEditorWithFlyoutPalette.java b/bundles/org.eclipse.rap.gef/src/org/eclipse/gef/ui/parts/GraphicalEditorWithFlyoutPalette.java
index e45f7d6..39a653f 100644
--- a/bundles/org.eclipse.rap.gef/src/org/eclipse/gef/ui/parts/GraphicalEditorWithFlyoutPalette.java
+++ b/bundles/org.eclipse.rap.gef/src/org/eclipse/gef/ui/parts/GraphicalEditorWithFlyoutPalette.java
@@ -70,8 +70,7 @@
 	 * @see GraphicalEditor#createPartControl(Composite)
 	 */
 	public void createPartControl(Composite parent) {
-		splitter = new FlyoutPaletteComposite(parent, SWT.NONE, getSite()
-				.getPage(), getPaletteViewerProvider(), getPalettePreferences());
+		splitter = createPaletteComposite(parent);
 		super.createPartControl(splitter);
 		splitter.setGraphicalControl(getGraphicalControl());
 		if (page != null) {
@@ -81,6 +80,23 @@
 	}
 
 	/**
+	 * Creates a new {@link FlyoutPaletteComposite} to be used by this
+	 * {@link GraphicalEditorWithFlyoutPalette}
+	 * 
+	 * @param parent
+	 *            The {@link Composite}, which should serve as the container for
+	 *            the to be created {@link FlyoutPaletteComposite}.
+	 * @return The {@link FlyoutPaletteComposite} used by this
+	 *         {@link GraphicalEditorWithFlyoutPalette}.
+	 * @since 3.10
+	 */
+	protected FlyoutPaletteComposite createPaletteComposite(Composite parent) {
+		return new FlyoutPaletteComposite(parent, SWT.NONE,
+				getSite().getPage(), getPaletteViewerProvider(),
+				getPalettePreferences());
+	}
+
+	/**
 	 * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
 	 */
 	public Object getAdapter(Class type) {