diff options
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ProcessConsole.java | 4 | ||||
-rw-r--r-- | org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsole.java | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ProcessConsole.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ProcessConsole.java index 1b2eb7dff..42d76cff8 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ProcessConsole.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ProcessConsole.java @@ -317,7 +317,7 @@ public class ProcessConsole extends IOConsole implements IConsole, IDebugEventSe } else if (property.equals(IDebugUIConstants.PREF_CONSOLE_FONT)) { setFont(JFaceResources.getFont(IDebugUIConstants.PREF_CONSOLE_FONT)); } else if (property.equals(IDebugPreferenceConstants.CONSOLE_BAKGROUND_COLOR)) { - setBackgrond(DebugUIPlugin.getPreferenceColor(IDebugPreferenceConstants.CONSOLE_BAKGROUND_COLOR)); + setBackground(DebugUIPlugin.getPreferenceColor(IDebugPreferenceConstants.CONSOLE_BAKGROUND_COLOR)); } } @@ -421,7 +421,7 @@ public class ProcessConsole extends IOConsole implements IConsole, IDebugEventSe DebugUIPlugin.getStandardDisplay().asyncExec(new Runnable() { public void run() { setFont(JFaceResources.getFont(IDebugUIConstants.PREF_CONSOLE_FONT)); - setBackgrond(DebugUIPlugin.getPreferenceColor(IDebugPreferenceConstants.CONSOLE_BAKGROUND_COLOR)); + setBackground(DebugUIPlugin.getPreferenceColor(IDebugPreferenceConstants.CONSOLE_BAKGROUND_COLOR)); } }); } diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsole.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsole.java index 83924b6ef..c065f6346 100644 --- a/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsole.java +++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsole.java @@ -248,8 +248,20 @@ public abstract class TextConsole extends AbstractConsole { * * @param background background color or <code>null</code> for default * @since 3.3 + * @deprecated use setBackground(Color) instead */ public void setBackgrond(Color background) { + setBackground(background); + } + + /** + * Sets the background color used by this console. Specify <code>null</code> to use + * the default background color. + * + * @param background background color or <code>null</code> for default + * @since 3.3 + */ + public void setBackground(Color background) { if (fBackground == null) { if (background == null) { return; |