diff options
author | Lars Vogel | 2020-07-14 13:30:20 +0000 |
---|---|---|
committer | Lars Vogel | 2020-07-31 09:52:08 +0000 |
commit | 961c1d1d50f0bd73b5dc3f2e5b37042c63b2ce32 (patch) | |
tree | b37e568b72b1d8ad5ffa4ba0bb10125f53c40258 /org.eclipse.ui.editors | |
parent | 2098f96974e025c74abc2fd6214ef5e9e0912aee (diff) | |
download | eclipse.platform.text-961c1d1d50f0bd73b5dc3f2e5b37042c63b2ce32.tar.gz eclipse.platform.text-961c1d1d50f0bd73b5dc3f2e5b37042c63b2ce32.tar.xz eclipse.platform.text-961c1d1d50f0bd73b5dc3f2e5b37042c63b2ce32.zip |
Bug 565208: Remove calls to Color.disposeY20200801-1200I20200803-0210I20200801-1800I20200801-0010I20200731-2040I20200731-1800
As these calls are no longer needed, remove the calls
and related code around such dispose that is also
now redundant.
Change-Id: Ifd82694346e546185768256eba526027f5bd9f4f
Diffstat (limited to 'org.eclipse.ui.editors')
-rw-r--r-- | org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java index 521ba4e01dc..7ab858a9770 100644 --- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java +++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java @@ -79,12 +79,6 @@ class SourceViewerInformationControl implements IInformationControl, IInformatio private Label fSeparator; /** The font of the optional status text label.*/ private Font fStatusTextFont; - /** - * The color of the optional status text label or <code>null</code> if none. - * - * @since 3.6 - */ - private Color fStatusTextForegroundColor; /** The maximal widget width. */ private int fMaxWidth; /** The maximal widget height. */ @@ -182,8 +176,9 @@ class SourceViewerInformationControl implements IInformationControl, IInformatio GridData gd2= new GridData(GridData.FILL_VERTICAL | GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING); fStatusField.setLayoutData(gd2); - fStatusTextForegroundColor= new Color(fStatusField.getDisplay(), blend(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND).getRGB(), display.getSystemColor(SWT.COLOR_INFO_FOREGROUND).getRGB(), 0.56f)); - fStatusField.setForeground(fStatusTextForegroundColor); + Color statusTextForegroundColor= new Color(fStatusField.getDisplay(), + blend(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND).getRGB(), display.getSystemColor(SWT.COLOR_INFO_FOREGROUND).getRGB(), 0.56f)); + fStatusField.setForeground(statusTextForegroundColor); fStatusField.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND)); } @@ -253,9 +248,6 @@ class SourceViewerInformationControl implements IInformationControl, IInformatio if (fStatusTextFont != null && !fStatusTextFont.isDisposed()) fStatusTextFont.dispose(); fStatusTextFont= null; - if (fStatusTextForegroundColor != null && !fStatusTextForegroundColor.isDisposed()) - fStatusTextForegroundColor.dispose(); - fStatusTextForegroundColor= null; fTextFont= null; fShell= null; |