Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2015-12-23 12:02:39 -0500
committerRyan D. Brooks2015-12-23 12:02:39 -0500
commit491e33655af14eb3e0e19c3e68bfb4377eb26efa (patch)
tree1151508caa0c1aead471124941155914a8b57924 /plugins/org.eclipse.osee.ats.reports
parent707b3e7a293e5fab698327ccaa6fd9d3c0a1965d (diff)
downloadorg.eclipse.osee-491e33655af14eb3e0e19c3e68bfb4377eb26efa.tar.gz
org.eclipse.osee-491e33655af14eb3e0e19c3e68bfb4377eb26efa.tar.xz
org.eclipse.osee-491e33655af14eb3e0e19c3e68bfb4377eb26efa.zip
refactor: Use OseeCoreException.wrap were applicable
Diffstat (limited to 'plugins/org.eclipse.osee.ats.reports')
-rw-r--r--plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/BirtReportViewerTab.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/BirtReportViewerTab.java b/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/BirtReportViewerTab.java
index 24446c532e..eb7fcc0337 100644
--- a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/BirtReportViewerTab.java
+++ b/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/BirtReportViewerTab.java
@@ -10,7 +10,6 @@ import org.eclipse.birt.report.viewer.utilities.WebViewer;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.osee.framework.core.exception.OseeExceptions;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.logging.OseeLevel;
import org.eclipse.osee.framework.logging.OseeLog;
@@ -58,14 +57,12 @@ public class BirtReportViewerTab implements IResultsEditorTab {
}
private URL getReportPath(String bundleId, String reportPath) throws OseeCoreException {
- URL url = null;
try {
Bundle bundle = Platform.getBundle(bundleId);
- url = FileLocator.find(bundle, new Path(reportPath), null);
- url = FileLocator.toFileURL(url);
+ URL url = FileLocator.find(bundle, new Path(reportPath), null);
+ return FileLocator.toFileURL(url);
} catch (Exception ex) {
- OseeExceptions.wrapAndThrow(ex);
+ throw OseeCoreException.wrap(ex);
}
- return url;
}
}

Back to the top