diff options
author | Camille Letavernier | 2014-04-03 14:30:48 +0000 |
---|---|---|
committer | Camille Letavernier | 2014-04-03 14:30:48 +0000 |
commit | 9144f736acc70a286d761c5a95c12437cac5cdd8 (patch) | |
tree | 11d0921830d9fb1e6dafce1c3310fe68b63b478a | |
parent | 6bb8e21fd895afe43856395a7e29cea10f0ec8be (diff) | |
download | org.eclipse.papyrus-9144f736acc70a286d761c5a95c12437cac5cdd8.tar.gz org.eclipse.papyrus-9144f736acc70a286d761c5a95c12437cac5cdd8.tar.xz org.eclipse.papyrus-9144f736acc70a286d761c5a95c12437cac5cdd8.zip |
[Trivial] Remove logged exceptions in expected cases
-rw-r--r-- | extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/utils/RobotmlSelectionTester.java | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/utils/RobotmlSelectionTester.java b/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/utils/RobotmlSelectionTester.java index 2036ba9f8e1..46906183b07 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/utils/RobotmlSelectionTester.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.common/src/org/eclipse/papyrus/robotml/diagram/common/utils/RobotmlSelectionTester.java @@ -20,13 +20,9 @@ import org.eclipse.emf.ecore.EObject; import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.papyrus.infra.core.editor.IMultiDiagramEditor;
-import org.eclipse.papyrus.infra.core.resource.ModelMultiException;
import org.eclipse.papyrus.infra.core.resource.ModelSet;
import org.eclipse.papyrus.infra.core.resource.ModelsReader;
-import org.eclipse.papyrus.infra.core.resource.NotFoundException;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForSelection;
-import org.eclipse.papyrus.robotml.diagram.common.Activator;
import org.eclipse.papyrus.uml.tools.model.UmlModel;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.PlatformUI;
@@ -138,13 +134,9 @@ public class RobotmlSelectionTester extends PropertyTester { }
}
- } catch (ServiceException e) {
- //Ignored: The selection cannot be used to retrieve the ServicesRegistry
- } catch (NotFoundException e) {
- Activator.log.error(e);
- } catch (ModelMultiException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ } catch (Exception e) {
+ //Ignored: The selection cannot be used to retrieve the ServicesRegistry.
+ //Do not log exceptions: this is just not a Papyrus/RobotML model
}
}
|