Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-12-21 15:27:08 -0500
committerRyan D. Brooks2010-12-21 15:27:08 -0500
commitfbfdc0d72221f7e8edad8f26559ab3c9197a6949 (patch)
tree58c8c30a74c219e3ed64be95e2b902e3aeab81ca /plugins/org.eclipse.osee.ote.ui.message
parent605b37416a4f11ae05b801bcb74f3247ad18d96b (diff)
downloadorg.eclipse.osee-fbfdc0d72221f7e8edad8f26559ab3c9197a6949.tar.gz
org.eclipse.osee-fbfdc0d72221f7e8edad8f26559ab3c9197a6949.tar.xz
org.eclipse.osee-fbfdc0d72221f7e8edad8f26559ab3c9197a6949.zip
refactor: Remove usage of obsolete class AFile
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/WatchView.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/WatchView.java b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/WatchView.java
index 972153892a..02df6c6e16 100644
--- a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/WatchView.java
+++ b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/WatchView.java
@@ -49,7 +49,7 @@ import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.nebula.widgets.xviewer.XViewer;
import org.eclipse.osee.connection.service.IServiceConnector;
import org.eclipse.osee.framework.core.exception.OseeArgumentException;
-import org.eclipse.osee.framework.jdk.core.util.AFile;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
import org.eclipse.osee.framework.jdk.core.util.benchmark.Benchmark;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.plugin.core.IActionable;
@@ -681,10 +681,11 @@ public final class WatchView extends ViewPart implements IActionable, IMessageDi
@Override
protected IStatus run(IProgressMonitor monitor) {
- String text = AFile.readFile(watchFile);
- final String[] msgs = text.split("\n");
- monitor.beginTask("loading watch elements", msgs.length + 10);
try {
+ String text = Lib.fileToString(watchFile);
+ final String[] msgs = text.split("\n");
+ monitor.beginTask("loading watch elements", msgs.length + 10);
+
if (msgs.length > 0) {
if (msgs[0].equals("version=2.0")) {
final Map<String, ArrayList<ElementPath>> pathsToAdd =

Back to the top