Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-12-20 20:45:12 +0000
committerRyan D. Brooks2010-12-20 20:45:12 +0000
commitc4f77f10b299561f09137bf253b5d417ef60b3dd (patch)
tree4bbb314ecd887772407709291fdeaccfe26d2d39 /plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee
parent76c34a85e77149614f89d3a97bf27b498038f9f9 (diff)
downloadorg.eclipse.osee-c4f77f10b299561f09137bf253b5d417ef60b3dd.tar.gz
org.eclipse.osee-c4f77f10b299561f09137bf253b5d417ef60b3dd.tar.xz
org.eclipse.osee-c4f77f10b299561f09137bf253b5d417ef60b3dd.zip
refactor: Simplify exception handling in OseeDslRenderer
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java
index 9dd8b8d7402..95793b4043e 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java
@@ -21,6 +21,7 @@ import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.osee.framework.core.dsl.integration.util.OseeDslSegmentParser;
import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
@@ -39,7 +40,6 @@ import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.program.Program;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.ide.IDE;
@@ -120,9 +120,7 @@ public final class OseeDslRenderer extends FileSystemRenderer {
IWorkbenchPage page = workbench.getActiveWorkbenchWindow().getActivePage();
IDE.openEditor(page, file);
}
- } catch (OseeCoreException ex) {
- OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex);
- } catch (PartInitException ex) {
+ } catch (CoreException ex) {
OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex);
}
}

Back to the top