Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2011-01-10 16:21:56 -0500
committerRyan D. Brooks2011-01-10 16:21:56 -0500
commitd0a98e59637cd674efd73a98fc01e1e285068f65 (patch)
tree5cea2d71dee1953efad373ec9e649bf8b298588a /plugins/org.eclipse.osee.coverage
parent2656eb39ea440fbbf59d47c92b2df9a1794e3102 (diff)
downloadorg.eclipse.osee-d0a98e59637cd674efd73a98fc01e1e285068f65.tar.gz
org.eclipse.osee-d0a98e59637cd674efd73a98fc01e1e285068f65.tar.xz
org.eclipse.osee-d0a98e59637cd674efd73a98fc01e1e285068f65.zip
refactor: Make exception handling common across handlers
Diffstat (limited to 'plugins/org.eclipse.osee.coverage')
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditorHandler.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditorHandler.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditorHandler.java
index e330f82627..fa4df54935 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditorHandler.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditorHandler.java
@@ -10,10 +10,8 @@
*******************************************************************************/
package org.eclipse.osee.coverage.editor;
-import java.util.logging.Level;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.ui.skynet.commandHandlers.renderer.handlers.AbstractEditorHandler;
import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
@@ -23,15 +21,10 @@ import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
public class CoverageEditorHandler extends AbstractEditorHandler {
@Override
- public Object execute(ExecutionEvent event) {
+ public Object executeWithException(ExecutionEvent event) throws OseeCoreException {
if (!artifacts.isEmpty()) {
CoverageRenderer renderer = new CoverageRenderer();
- try {
- renderer.open(artifacts, PresentationType.SPECIALIZED_EDIT);
- } catch (OseeCoreException ex) {
- OseeLog.log(CoverageEditorHandler.class, Level.SEVERE, ex);
- }
- dispose();
+ renderer.open(artifacts, PresentationType.SPECIALIZED_EDIT);
}
return null;
}

Back to the top