private void setContext ( IWorkbenchPage page , IVdmStackFrame frame ) { // pageToContextMap.put(page, frame); // System.setProperty(DEBUGGER_ACTIVE, "true"); //$NON-NLS-1$ /* * if (frame.canForceReturn()) { System.setProperty(SUPPORTS_FORCE_RETURN, "true"); //$NON-NLS-1$ } else { * System.setProperty(SUPPORTS_FORCE_RETURN, "false"); //$NON-NLS-1$ } if * (((IVdmStackFrame)frame.getDebugTarget()).supportsInstanceRetrieval()){ * System.setProperty(SUPPORTS_INSTANCE_RETRIEVAL, "true"); //$NON-NLS-1$ } else { * System.setProperty(SUPPORTS_INSTANCE_RETRIEVAL, "false"); //$NON-NLS-1$ } if (instOf) { * System.setProperty(INSTANCE_OF_IJAVA_STACK_FRAME, "true"); //$NON-NLS-1$ } else { * System.setProperty(INSTANCE_OF_IJAVA_STACK_FRAME, "false"); //$NON-NLS-1$ } */ if ( fContextsByPage == null ) { fContextsByPage = new HashMap < IWorkbenchPage , IVdmStackFrame > ( ) ; } fContextsByPage . put ( page , frame ) ; System . setProperty ( DEBUGGER_ACTIVE , "true" ) ; //$NON-NLS-1$ // if (frame.canForceReturn()) { // System.setProperty(SUPPORTS_FORCE_RETURN, "true"); //$NON-NLS-1$ // } else { // System.setProperty(SUPPORTS_FORCE_RETURN, "false"); //$NON-NLS-1$ // } // if (((IJavaDebugTarget)frame.getDebugTarget()).supportsInstanceRetrieval()){ // System.setProperty(SUPPORTS_INSTANCE_RETRIEVAL, "true"); //$NON-NLS-1$ // } else { // System.setProperty(SUPPORTS_INSTANCE_RETRIEVAL, "false"); //$NON-NLS-1$ // } // if (instOf) { // System.setProperty(INSTANCE_OF_IJAVA_STACK_FRAME, "true"); //$NON-NLS-1$ // } else { // System.setProperty(INSTANCE_OF_IJAVA_STACK_FRAME, "false"); //$NON-NLS-1$ // } }
Sets the evaluation context for the given page and notes that a valid execution context exists .