summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjcheuoua2007-03-08 22:30:09 (EST)
committer jcheuoua2007-03-08 22:30:09 (EST)
commit6bfcce5a3e5210b823c9754813e1662cd59fb7aa (patch)
tree59c24f64172d4ef29530486d466760c9436d53c7
parentfc737dda351f8696b325c9f1eded3e8051164542 (diff)
downloadorg.eclipse.jet-6bfcce5a3e5210b823c9754813e1662cd59fb7aa.zip
org.eclipse.jet-6bfcce5a3e5210b823c9754813e1662cd59fb7aa.tar.gz
org.eclipse.jet-6bfcce5a3e5210b823c9754813e1662cd59fb7aa.tar.bz2
Fix error dialog linked to widget disposed when text atribute colors changes
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/editor/JETSourceViewer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/editor/JETSourceViewer.java b/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/editor/JETSourceViewer.java
index 6d9cd34..851ccbb 100644
--- a/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/editor/JETSourceViewer.java
+++ b/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/editor/JETSourceViewer.java
@@ -39,7 +39,7 @@ public class JETSourceViewer extends ProjectionViewer implements IPropertyChange
private void initializeViewerColors() {
if (preferenceStore != null) {
StyledText styledText = getTextWidget();
- if (styledText == null)
+ if (styledText == null || styledText.isDisposed())
return;
Color color = preferenceStore.getBoolean("AbstractTextEditor.Color.Foreground.SystemDefault") ? null
: createColor(preferenceStore, "AbstractTextEditor.Color.Foreground", styledText.getDisplay());