提交 fa285e89 编写于 作者: S Serge Rider

#7369 Inline control init fix (do not change font in dialogs)

上级 cbf2357e
......@@ -133,15 +133,16 @@ public abstract class BaseValueEditor<T extends Control> implements IValueEditor
}
}
// Set control font (the same as for results viewer)
ITheme currentTheme = valueController.getValueSite().getWorkbenchWindow().getWorkbench().getThemeManager().getCurrentTheme();
if (currentTheme != null) {
Font rsFont = currentTheme.getFontRegistry().get(ThemeConstants.FONT_SQL_RESULT_SET);
if (rsFont != null) {
inlineControl.setFont(rsFont);
if (!UIUtils.isInDialog(inlineControl)) {
// Set control font (the same as for results viewer)
ITheme currentTheme = valueController.getValueSite().getWorkbenchWindow().getWorkbench().getThemeManager().getCurrentTheme();
if (currentTheme != null) {
Font rsFont = currentTheme.getFontRegistry().get(ThemeConstants.FONT_SQL_RESULT_SET);
if (rsFont != null) {
inlineControl.setFont(rsFont);
}
}
}
}
final ControlModifyListener modifyListener = new ControlModifyListener();
inlineControl.addListener(SWT.Modify, modifyListener);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册