提交 495c24cc 编写于 作者: J jurgen

ERD config listener fix

Former-commit-id: d0292ecd
上级 29cd576a
......@@ -811,7 +811,7 @@ public abstract class ERDEditorPart extends GraphicalEditorWithFlyoutPalette
return;
}
if (ERDConstants.PREF_GRID_ENABLED.equals(event.getProperty())) {
Boolean enabled = (Boolean)event.getNewValue();
Boolean enabled = Boolean.valueOf(event.getNewValue().toString());
graphicalViewer.setProperty(SnapToGrid.PROPERTY_GRID_ENABLED, enabled);
graphicalViewer.setProperty(SnapToGrid.PROPERTY_GRID_VISIBLE, enabled);
} else if (ERDConstants.PREF_GRID_WIDTH.equals(event.getProperty()) || ERDConstants.PREF_GRID_HEIGHT.equals(event.getProperty())) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册