1 55 56 package org.apache.bsf.dbline; 57 58 import org.apache.bsf.debug.jsdi.*; 59 import java.rmi.RemoteException ; 60 61 70 public class Context { 71 72 JsContext m_cx; 74 Buffer m_buffer; int m_stoppedAtLine; 77 public Context(JsContext cx, Buffer buffer) throws RemoteException { 79 m_cx = cx; 80 m_buffer = buffer; 81 m_stoppedAtLine = cx.getLineNumber(); 82 m_buffer.setCurrentLine(m_stoppedAtLine); 83 } 84 Buffer getBuffer() { 86 return m_buffer; 87 } 88 String getBufferName() { 90 return m_buffer.getName(); 91 } 92 int getCurrentLine() { 94 return m_stoppedAtLine; 95 } 96 JsContext getJsContext() { 98 return m_cx; 99 } 100 } 101 | Popular Tags |