}
private void openStackFrame(IStackFrame sf) {
ClassIndex ci = SystemFacade.getInstance().getClassIndex();
ClassLocator cl = ci.getLocator(sf.location().declaringType().name());
if (cl != null) {
try {
ClassFile cf = SystemFacade.getInstance().getClassFile(cl);
IMethod bpMethod = sf.location().method();
for (net.sf.rej.java.Method method : cf.getMethods()) {
if (method.getName().equals(bpMethod.name()) && method.getDescriptor().getRawDesc().equals(bpMethod.signature())) {
Integer pc = null;
if (sf.location().codeIndex() != -1) {
pc = (int)sf.location().codeIndex();
}
Event event = new Event(EventType.CLASS_OPEN);
event.setClassFile(cf);
event.setFile(cl.getFile());
this.dispatcher.notifyObservers(event);
setExecutionRow(method.getName(), method.getDescriptor(), pc);
break;
}
}