public IEvaluationContext getFullContextSnapshot() {
return fillInContext(true);
}
private IEvaluationContext fillInContext(boolean fullContext) {
IEvaluationContext tmpContext = getCurrentState();
EvaluationContext context = null;
if (fullContext) {
context = new EvaluationContext(null, tmpContext.getDefaultVariable());
copyVariable(context, tmpContext, ISources.ACTIVE_CURRENT_SELECTION_NAME);
copyVariable(context, tmpContext, ISources.ACTIVE_FOCUS_CONTROL_ID_NAME);
copyVariable(context, tmpContext, ISources.ACTIVE_FOCUS_CONTROL_NAME);
copyVariable(context, tmpContext, ISources.ACTIVE_MENU_EDITOR_INPUT_NAME);
copyVariable(context, tmpContext, ISources.ACTIVE_MENU_NAME);