Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java')
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java
index 058204564be..d932500102c 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java
@@ -658,12 +658,10 @@ public class TextEditorDefaultsPreferencePage extends PreferencePage implements
private class ColorEntry {
public final String colorKey;
public final String label;
- public RGB previousColor;
public final String isSystemDefaultKey;
public ColorEntry(String colorKey, String label, String isSystemDefaultKey) {
this.colorKey= colorKey;
this.label= label;
- this.previousColor= PreferenceConverter.getColor(fOverlayStore, colorKey);
this.isSystemDefaultKey= isSystemDefaultKey;
}
@@ -680,7 +678,6 @@ public class TextEditorDefaultsPreferencePage extends PreferencePage implements
}
public void setColor(RGB rgb) {
- this.previousColor= PreferenceConverter.getColor(fOverlayStore, this.colorKey);
PreferenceConverter.setValue(fOverlayStore, this.colorKey, rgb);
}
@@ -965,7 +962,7 @@ public class TextEditorDefaultsPreferencePage extends PreferencePage implements
SelectionListener colorDefaultSelectionListener= new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- ColorEntry colorEntry = getSelectedAppearanceColorOption();
+ ColorEntry colorEntry= getSelectedAppearanceColorOption();
if (colorEntry.allowSystemDefault()) {
colorEntry.setSystemDefault(fAppearanceColorDefault.getSelection());
handleAppearanceColorListSelection(); // refresh color preview and checkbox state

Back to the top