Esempio n. 1
0
 @Override
 public int getSize() {
   try {
     return tinfo == null ? 1 : tinfo.getFrameCount();
   } catch (VMNotInterruptedException e) {
     // ### Is this the right way to handle this?
     return 0;
   }
 }
Esempio n. 2
0
 @Override
 public Object getElementAt(int index) {
   try {
     return tinfo == null ? null : tinfo.getFrame(index);
   } catch (VMNotInterruptedException e) {
     // ### Is this the right way to handle this?
     // ### Would happen if user scrolled stack trace
     // ### while not interrupted -- should probably
     // ### block user interaction in this case.
     return null;
   }
 }