more robust implementation for NLS name retrieval in scout explorer if the scout source bundles are not available.
diff --git a/org.eclipse.scout.sdk/src/org/eclipse/scout/sdk/util/ScoutSourceUtility.java b/org.eclipse.scout.sdk/src/org/eclipse/scout/sdk/util/ScoutSourceUtility.java
index 2dadfbd..7bcf938 100644
--- a/org.eclipse.scout.sdk/src/org/eclipse/scout/sdk/util/ScoutSourceUtility.java
+++ b/org.eclipse.scout.sdk/src/org/eclipse/scout/sdk/util/ScoutSourceUtility.java
@@ -66,6 +66,9 @@
String methodSource = null;
try {
methodSource = method.getSource();
+ if(methodSource == null) {
+ return name;
+ }
}
catch (Exception e) {
ScoutSdk.logWarning("could not find nls text of method '" + method.getElementName() + "'.", e);
@@ -208,7 +211,7 @@
/**
* to find any name matching inner type in the inner type hierarchy of the given type.
- *
+ *
* @param refType
* the type searching starts.
* @param simpleName