}
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);
copyVariable(context, tmpContext, ISources.ACTIVE_MENU_SELECTION_NAME);
} else {
context = new EvaluationContext(null, Collections.EMPTY_LIST);
}
copyVariable(context, tmpContext, ISources.ACTIVE_ACTION_SETS_NAME);
copyVariable(context, tmpContext, ISources.ACTIVE_CONTEXT_NAME);
copyVariable(context, tmpContext, ISources.ACTIVE_EDITOR_ID_NAME);