提交 2cbfedc1 编写于 作者: S Serge Rider

#1949 ERD palette init fix


Former-commit-id: 17a6a9b0
上级 e74e58f5
......@@ -31,6 +31,7 @@ import org.eclipse.gef.editparts.ZoomManager;
import org.eclipse.gef.palette.*;
import org.eclipse.gef.requests.CreationFactory;
import org.eclipse.gef.ui.actions.*;
import org.eclipse.gef.ui.palette.FlyoutPaletteComposite;
import org.eclipse.gef.ui.palette.FlyoutPaletteComposite.FlyoutPreferences;
import org.eclipse.gef.ui.palette.PaletteViewerProvider;
import org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette;
......@@ -388,6 +389,7 @@ public abstract class ERDEditorPart extends GraphicalEditorWithFlyoutPalette
protected void configureGraphicalViewer()
{
super.configureGraphicalViewer();
this.getGraphicalViewer().getControl().setBackground(UIUtils.getColorRegistry().get(ERDConstants.COLOR_ERD_DIAGRAM_BACKGROUND));
GraphicalViewer graphicalViewer = getGraphicalViewer();
......@@ -626,6 +628,12 @@ public abstract class ERDEditorPart extends GraphicalEditorWithFlyoutPalette
}
protected FlyoutPaletteComposite createPaletteComposite(Composite parent) {
FlyoutPaletteComposite paletteComposite = new FlyoutPaletteComposite(parent, 0, this.getSite().getPage(), this.getPaletteViewerProvider(), this.getPalettePreferences());
paletteComposite.setBackground(UIUtils.getColorRegistry().get(ERDConstants.COLOR_ERD_DIAGRAM_BACKGROUND));
return paletteComposite;
}
public boolean isLoaded()
{
return isLoaded;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册