コード例 #1
0
 public synchronized String getExceptionDescription() {
   if (evaluatedWatch != null) {
     return evaluatedWatch.getExceptionDescription();
   } else {
     return null;
   }
 }
コード例 #2
0
 @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();
   }
 }