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.message
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.message')
-rw-r--r--plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/DetailsBox.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/DetailsBox.java b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/DetailsBox.java
index e0500aa952..b41c96ad69 100644
--- a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/DetailsBox.java
+++ b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/DetailsBox.java
@@ -23,6 +23,7 @@ import org.eclipse.core.runtime.IRegistryEventListener;
import org.eclipse.core.runtime.Platform;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.FontManager;
import org.eclipse.osee.framework.ui.swt.ImageManager;
import org.eclipse.osee.ote.message.Message;
import org.eclipse.osee.ote.message.data.MessageData;
@@ -87,7 +88,7 @@ public class DetailsBox implements IRegistryEventListener {
public DetailsBox(Composite parent) {
hexImg = ImageManager.getImage(OteMessageImage.HEX);
- courier = new Font(parent.getDisplay(), "Courier", 10, SWT.NORMAL);
+ courier = FontManager.getFont("Courier New", 10, SWT.NORMAL);
/* Create Text box to display values of selected messages */
infoFolder = new TabFolder(parent, SWT.BORDER);

Back to the top