Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.osee.framework.ui.admin/src/org/eclipse/osee/framework/ui/admin/OseeClientsTab.java5
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java5
-rw-r--r--plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/panels/PreviewPanel.java6
-rw-r--r--plugins/org.eclipse.osee.ote.ui.host.cmd/src/org/eclipse/osee/ote/ui/host/cmd/TestServerConsoleServiceRenderer.java5
-rw-r--r--plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/DetailsBox.java3
5 files changed, 10 insertions, 14 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.admin/src/org/eclipse/osee/framework/ui/admin/OseeClientsTab.java b/plugins/org.eclipse.osee.framework.ui.admin/src/org/eclipse/osee/framework/ui/admin/OseeClientsTab.java
index c5f0f89e87..ecf0d82945 100644
--- a/plugins/org.eclipse.osee.framework.ui.admin/src/org/eclipse/osee/framework/ui/admin/OseeClientsTab.java
+++ b/plugins/org.eclipse.osee.framework.ui.admin/src/org/eclipse/osee/framework/ui/admin/OseeClientsTab.java
@@ -34,12 +34,12 @@ import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
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.swt.SWT;
import org.eclipse.swt.custom.SashForm;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -139,8 +139,7 @@ public class OseeClientsTab {
image.setBackground(Displays.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
Label label = new Label(composite, SWT.NONE);
- Font font = new Font(AWorkbench.getDisplay(), "Courier New", 10, SWT.BOLD);
- label.setFont(font);
+ label.setFont(FontManager.getFont("Courier New", 10, SWT.BOLD));
label.setForeground(Displays.getSystemColor(SWT.COLOR_DARK_RED));
label.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, true, true));
label.setText("Access Denied.\nContact your administrator.");
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java
index b4a19b8aae..2d6168335b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java
@@ -96,6 +96,7 @@ import org.eclipse.osee.framework.ui.skynet.util.SkynetViews;
import org.eclipse.osee.framework.ui.skynet.widgets.XBranchSelectWidget;
import org.eclipse.osee.framework.ui.skynet.widgets.dialog.ArtifactTypeFilteredTreeEntryDialog;
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.framework.ui.swt.MenuItems;
import org.eclipse.osee.framework.ui.swt.TreeViewerUtility;
@@ -112,7 +113,6 @@ import org.eclipse.swt.events.MenuEvent;
import org.eclipse.swt.events.MenuListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
@@ -234,8 +234,7 @@ public class ArtifactExplorer extends ViewPart implements IArtifactExplorerEvent
image.setBackground(Displays.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
Label label = new Label(composite, SWT.NONE);
- Font font = new Font(AWorkbench.getDisplay(), "Courier New", 10, SWT.BOLD);
- label.setFont(font);
+ label.setFont(FontManager.getFont("Courier New", 10, SWT.BOLD));
label.setForeground(Displays.getSystemColor(SWT.COLOR_DARK_RED));
label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true));
label.setText("Branch Read Access Denied.\nContact your administrator.");
diff --git a/plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/panels/PreviewPanel.java b/plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/panels/PreviewPanel.java
index 5b3acef5e2..17f476a8d9 100644
--- a/plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/panels/PreviewPanel.java
+++ b/plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/panels/PreviewPanel.java
@@ -13,13 +13,12 @@ package org.eclipse.osee.ote.ui.define.panels;
import java.net.URI;
import java.util.logging.Level;
import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.FontManager;
import org.eclipse.osee.ote.ui.define.OteUiDefinePlugin;
import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.custom.StackLayout;
-import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
@@ -77,8 +76,7 @@ public class PreviewPanel extends Composite {
defaultComposite.setBackground(Displays.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
Label label = new Label(defaultComposite, SWT.NONE);
- Font font = new Font(AWorkbench.getDisplay(), "Courier New", 10, SWT.BOLD);
- label.setFont(font);
+ label.setFont(FontManager.getFont("Courier New", 10, SWT.BOLD));
label.setForeground(Displays.getSystemColor(SWT.COLOR_DARK_RED));
label.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true));
label.setText(PREVIEW_DEFAULT_TITLE);
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);
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