Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2011-07-14 20:10:35 -0400
committerRyan D. Brooks2011-07-14 20:10:35 -0400
commit6153387cfb6e295bffc752d6a85c95f8b7c6c6c3 (patch)
tree000567e37bfed7d87dfcef70ea925847306d0ad3 /plugins/org.eclipse.osee.ote.ui.host.cmd
parent4c153630addd28e308769c32344b8c179588f679 (diff)
downloadorg.eclipse.osee-6153387cfb6e295bffc752d6a85c95f8b7c6c6c3.tar.gz
org.eclipse.osee-6153387cfb6e295bffc752d6a85c95f8b7c6c6c3.tar.xz
org.eclipse.osee-6153387cfb6e295bffc752d6a85c95f8b7c6c6c3.zip
bug: Fix font resource leaks
Diffstat (limited to 'plugins/org.eclipse.osee.ote.ui.host.cmd')
-rw-r--r--plugins/org.eclipse.osee.ote.ui.host.cmd/src/org/eclipse/osee/ote/ui/host/cmd/TestServerConsoleServiceRenderer.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui.host.cmd/src/org/eclipse/osee/ote/ui/host/cmd/TestServerConsoleServiceRenderer.java b/plugins/org.eclipse.osee.ote.ui.host.cmd/src/org/eclipse/osee/ote/ui/host/cmd/TestServerConsoleServiceRenderer.java
index cf0aba3bf6..ac4bfdd159 100644
--- a/plugins/org.eclipse.osee.ote.ui.host.cmd/src/org/eclipse/osee/ote/ui/host/cmd/TestServerConsoleServiceRenderer.java
+++ b/plugins/org.eclipse.osee.ote.ui.host.cmd/src/org/eclipse/osee/ote/ui/host/cmd/TestServerConsoleServiceRenderer.java
@@ -21,6 +21,7 @@ import org.eclipse.osee.framework.jdk.core.type.TreeParent;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.ui.service.control.renderer.IServiceRenderer;
import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.FontManager;
import org.eclipse.osee.framework.ui.swt.Widgets;
import org.eclipse.osee.ote.core.environment.interfaces.IHostTestEnvironment;
import org.eclipse.osee.ote.core.environment.interfaces.IRemoteCommandConsole;
@@ -31,13 +32,11 @@ import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.TraverseEvent;
import org.eclipse.swt.events.TraverseListener;
-import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Text;
@@ -154,7 +153,7 @@ public class TestServerConsoleServiceRenderer implements IServiceRenderer {
outputTxt.setTabs(4);
outputTxt.setBackground(Displays.getSystemColor(SWT.COLOR_BLACK));
outputTxt.setForeground(Displays.getSystemColor(SWT.COLOR_GREEN));
- outputTxt.setFont(new Font(Display.getDefault(), "Courier", 10, SWT.NORMAL));
+ outputTxt.setFont(FontManager.getFont("Courier", 10, SWT.NORMAL));
Widgets.attachToParent(outputTxt, SWT.TOP, 0, 5);
Widgets.attachToParent(outputTxt, SWT.BOTTOM, 75, 0);
Widgets.attachToParent(outputTxt, SWT.LEFT, 0, 5);

Back to the top