diff options
| author | Lars Vogel | 2020-07-20 09:02:13 +0000 |
|---|---|---|
| committer | Roland Grunberg | 2020-08-06 21:00:11 +0000 |
| commit | d05c3aad480f17cf176ec365a10644c2985c297c (patch) | |
| tree | 5f153bd88951cfe8902b73465268206264e3b8a4 | |
| parent | 2b427afc6425b36fc90b58258559d3a5850f6b5b (diff) | |
| download | eclipse.jdt.debug-d05c3aad480f17cf176ec365a10644c2985c297c.tar.gz eclipse.jdt.debug-d05c3aad480f17cf176ec365a10644c2985c297c.tar.xz eclipse.jdt.debug-d05c3aad480f17cf176ec365a10644c2985c297c.zip | |
Bug 565208: Remove calls to Color.disposeI20200810-1800I20200809-1800I20200808-1800I20200808-0230I20200807-1800I20200806-1800
As these calls are no longer needed, remove the calls
and related code around such dispose that is also
now redundant.
Change-Id: If836406680f975e9c30c2507c7c5cbe7bb3c8fc2
2 files changed, 0 insertions, 20 deletions
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/detailpane/SimpleDetailPane.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/detailpane/SimpleDetailPane.java index 07a22da28..7c3b1b32c 100644 --- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/detailpane/SimpleDetailPane.java +++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/detailpane/SimpleDetailPane.java @@ -139,18 +139,6 @@ public class SimpleDetailPane implements IDetailPane { */ @Override public void dispose() { - if (colorPrivate != null) { - colorPrivate.dispose(); - } - if (colorProtected != null) { - colorProtected.dispose(); - } - if (colorPublic != null) { - colorPublic.dispose(); - } - if (colorOther != null) { - colorOther.dispose(); - } } /* (non-Javadoc) diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDISourceViewer.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDISourceViewer.java index da2022ed3..4489b83ac 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDISourceViewer.java +++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDISourceViewer.java @@ -170,18 +170,12 @@ public class JDISourceViewer extends SourceViewer implements IPropertyChangeList ? null : createColor(store, AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND, styledText.getDisplay()); styledText.setForeground(color); - if (getForegroundColor() != null) { - getForegroundColor().dispose(); - } setForegroundColor(color); color= store.getBoolean(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT) ? null : createColor(store, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND, styledText.getDisplay()); styledText.setBackground(color); - if (getBackgroundColor() != null) { - getBackgroundColor().dispose(); - } setBackgroundColor(color); } } @@ -285,11 +279,9 @@ public class JDISourceViewer extends SourceViewer implements IPropertyChangeList setFont(null); } if (getBackgroundColor() != null) { - getBackgroundColor().dispose(); setBackgroundColor(null); } if (getForegroundColor() != null) { - getForegroundColor().dispose(); setForegroundColor(null); } if (fStore != null) { |
