/// <summary>
        /// Gets the document context for this stack frame.
        /// </summary>
        /// <param name="ppCxt">Returns an IDebugDocumentContext2 object that represents the current position in a source document.</param>
        /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns>
        /// <remarks>
        /// This method is faster than calling the IDebugStackFrame2.GetCodeContext method and then calling
        /// the IDebugCodeContext2.GetDocumentContext method on the code context. However, it is not guaranteed
        /// that every debug engine (DE) will implement this method.
        /// </remarks>
        public int GetDocumentContext(out IDebugDocumentContext2 ppCxt)
        {
            if (_nativeMethod)
            {
                ppCxt = null;
                return(VSConstants.E_FAIL);
            }

            ppCxt = new JavaDebugDocumentContext(_stackFrame.GetLocation());
            return(VSConstants.S_OK);
        }
        /// <summary>
        /// Gets the document context for this stack frame.
        /// </summary>
        /// <param name="ppCxt">Returns an IDebugDocumentContext2 object that represents the current position in a source document.</param>
        /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns>
        /// <remarks>
        /// This method is faster than calling the IDebugStackFrame2.GetCodeContext method and then calling
        /// the IDebugCodeContext2.GetDocumentContext method on the code context. However, it is not guaranteed
        /// that every debug engine (DE) will implement this method.
        /// </remarks>
        public int GetDocumentContext(out IDebugDocumentContext2 ppCxt)
        {
            if (_nativeMethod)
            {
                ppCxt = null;
                return VSConstants.E_FAIL;
            }

            ppCxt = new JavaDebugDocumentContext(_stackFrame.GetLocation());
            return VSConstants.S_OK;
        }
 public int GetDocumentContext(out IDebugDocumentContext2 ppSrcCxt)
 {
     ppSrcCxt = new JavaDebugDocumentContext(_location);
     return VSConstants.S_OK;
 }
 public int GetDocumentContext(out IDebugDocumentContext2 ppSrcCxt)
 {
     ppSrcCxt = new JavaDebugDocumentContext(_location);
     return(VSConstants.S_OK);
 }