From 9db150ae67d60710a9eb932ceb2c1c227fc9fcff Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Tue, 20 Feb 2018 17:02:09 +0200 Subject: [PATCH] Don't report ResourceNotFoundExceptions when looking for browse context This changes the code to behave like it did before commit 1dfeb7d5 as intended. refs #7719 Change-Id: I4fa9ae5114713d4e61acd1363a5369d16e1a5043 --- .../src/org/simantics/browsing/ui/graph/impl/Evaluators.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/Evaluators.java b/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/Evaluators.java index e86cdc547..da872193f 100644 --- a/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/Evaluators.java +++ b/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/Evaluators.java @@ -296,8 +296,10 @@ public class Evaluators { for(String browseContext : browseContexts) { try { browseContextResources.add(graph.getResource(browseContext)); + } catch(ResourceNotFoundException e) { + // Expected result, if the browse context is not modelled. } catch(DatabaseException e) { - LOGGER.error("Didn't find " + browseContext + " while loading model browser.", e); + LOGGER.error("Unexpected error occurred while finding browse context " + browseContext + ".", e); } } -- 2.47.1