Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Mollik2019-07-15 03:47:15 -0400
committerRalf Mollik2019-07-15 03:47:15 -0400
commit6284e8b2fc387325e55f623592a25464c28fac88 (patch)
tree63a3c0d6fe71dc4b5b441a9625147bc5d15734d9
parent97eb7ea535459de314a20cbe514d579c284d56cc (diff)
downloadorg.eclipse.osbp.xtext.oxtype-master.tar.gz
org.eclipse.osbp.xtext.oxtype-master.tar.xz
org.eclipse.osbp.xtext.oxtype-master.zip
catch up with developmentHEADmaster
Signed-off-by: Ralf Mollik <ramollik@compex-commerce.com>
-rw-r--r--org.eclipse.osbp.xtext.oxtype/src/org/eclipse/osbp/xtext/oxtype/linking/OXTypeLinkingService.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.osbp.xtext.oxtype/src/org/eclipse/osbp/xtext/oxtype/linking/OXTypeLinkingService.java b/org.eclipse.osbp.xtext.oxtype/src/org/eclipse/osbp/xtext/oxtype/linking/OXTypeLinkingService.java
index 8cb5e88..8740a59 100644
--- a/org.eclipse.osbp.xtext.oxtype/src/org/eclipse/osbp/xtext/oxtype/linking/OXTypeLinkingService.java
+++ b/org.eclipse.osbp.xtext.oxtype/src/org/eclipse/osbp/xtext/oxtype/linking/OXTypeLinkingService.java
@@ -96,9 +96,13 @@ public class OXTypeLinkingService extends JvmTypeEnhancingLinkingService {
EObject context, EReference eReference) {
if (scopeProvider instanceof OXDelegatingNamespaceScopeProvider) {
// this scope provider just delegates between JvmTypes and EObjects
- OXDelegatingNamespaceScopeProvider provider = (OXDelegatingNamespaceScopeProvider) scopeProvider;
- ImportedNamesAdapter adapter = getImportedNamesAdapter(context);
- provider.setWrapper(adapter, eReference);
+ try {
+ OXDelegatingNamespaceScopeProvider provider = (OXDelegatingNamespaceScopeProvider) scopeProvider;
+ ImportedNamesAdapter adapter = getImportedNamesAdapter(context);
+ provider.setWrapper(adapter, eReference);
+ } catch (Exception e) {
+ LOGGER.error("{}", e);
+ }
} else if (scopeProvider instanceof AbstractGlobalScopeDelegatingScopeProvider) {
AbstractGlobalScopeDelegatingScopeProvider provider = (AbstractGlobalScopeDelegatingScopeProvider) scopeProvider;
ImportedNamesAdapter adapter = getImportedNamesAdapter(context);

Back to the top