public synchronized String getExceptionDescription() { if (evaluatedWatch != null) { return evaluatedWatch.getExceptionDescription(); } else { return null; } }
@Override public String getToStringValue() throws InvalidExpressionException { if (!w.isEnabled()) { return NbBundle.getMessage(WatchesModel.class, "CTL_WatchDisabled"); } JPDAWatch evaluatedWatch; synchronized (this) { evaluatedWatch = this.evaluatedWatch; } if (evaluatedWatch == null) { JPDAWatch[] watchRef = new JPDAWatch[] {null}; getValue(watchRef); // To init the evaluatedWatch evaluatedWatch = watchRef[0]; } String e = evaluatedWatch.getExceptionDescription(); if (e != null) { return ">" + e + "<"; // NOI18N } else { return evaluatedWatch.getToStringValue(); } }