Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Bégaudeau2018-01-26 16:09:46 +0000
committerStéphane Bégaudeau2018-01-26 16:09:46 +0000
commitb915910cb26d0e7f0f3f62827b30c80602bd842d (patch)
tree2c35f7caed4679e3381f235f89b546a2663c27c4
parent49452bd0cced75898803c737373b7f052f162edb (diff)
downloadorg.eclipse.eef-b915910cb26d0e7f0f3f62827b30c80602bd842d.tar.gz
org.eclipse.eef-b915910cb26d0e7f0f3f62827b30c80602bd842d.tar.xz
org.eclipse.eef-b915910cb26d0e7f0f3f62827b30c80602bd842d.zip
[530391] Fix an issue with text style update
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=530391 Change-Id: Iff337cfabd3f2aa830d430dc0ff9ee98dc2e9896 Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
-rw-r--r--plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFTextLifecycleManager.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFTextLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFTextLifecycleManager.java
index 8f59d5d89..45c7b1afc 100644
--- a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFTextLifecycleManager.java
+++ b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFTextLifecycleManager.java
@@ -49,6 +49,7 @@ import org.eclipse.swt.events.FocusListener;
import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
@@ -431,9 +432,11 @@ public class EEFTextLifecycleManager extends AbstractEEFWidgetLifecycleManager {
if (widgetStyle instanceof EEFTextStyle) {
EEFTextStyle textStyle = (EEFTextStyle) widgetStyle;
+ Font defaultFont = this.text.getShell().getFont();
+
IEEFTextStyleCallback callback = new EEFStyledTextStyleCallback(this.text);
styleHelper.applyTextStyle(textStyle.getFontNameExpression(), textStyle.getFontSizeExpression(), textStyle.getFontStyleExpression(),
- this.text.getFont(), textStyle.getBackgroundColorExpression(), textStyle.getForegroundColorExpression(), callback);
+ defaultFont, textStyle.getBackgroundColorExpression(), textStyle.getForegroundColorExpression(), callback);
}
}

Back to the top