1 7 34 35 package com.sun.tools.example.debug.gui; 36 37 import com.sun.jdi.*; 38 import com.sun.tools.example.debug.bdi.*; 39 import java.util.EventObject ; 40 41 public class CurrentFrameChangedEvent extends EventObject { 42 43 private ThreadInfo tinfo; 44 private int index; 45 private boolean invalidate; 46 47 public CurrentFrameChangedEvent(Object source, ThreadInfo tinfo, 48 int index, boolean invalidate) { 49 super(source); 50 this.tinfo = tinfo; 51 this.index = index; 52 this.invalidate = invalidate; 53 } 54 55 public ThreadReference getThread() { 56 return tinfo == null? null : tinfo.thread(); 57 } 58 59 public ThreadInfo getThreadInfo() { 60 return tinfo; 61 } 62 63 public int getIndex() { 64 return index; 65 } 66 67 public boolean getInvalidate() { 68 return invalidate; 69 } 70 } 71 | Popular Tags |