}
default boolean isInstanceOf(String reference, String jsClass) {
- return (Boolean) evaluate("return "+getJsVarName(reference) + " instanceof " + jsClass);
+ try {
+ return (Boolean) evaluate("return " + getJsVarName(reference) + " instanceof " + jsClass);
+ } catch (Exception e) {
+ // TODO better understand why instanceof is often failing with SWT Browser
+ return false;
+ }
}
/*
}
String str = sb.toString();
if (!str.equals("")) {
- if (log.isDebugEnabled())
- log.debug(str);
+ if (log.isTraceEnabled())
+ log.trace(str);
writer.append(str);
}
}
terms: for (String str : curr) {
Term term = termsManager.getTerm(str);
if (term == null) {
- log.warn("Ignoring term " + str + " for " + getNode() + ", as it was not found.");
+ if (log.isTraceEnabled())
+ log.warn("Ignoring term " + str + " for " + getNode() + ", as it was not found.");
continue terms;
}
res.add(term);