@Override public void setEnabled(Object evaluationContext) { super.setEnabled(evaluationContext); if (evaluationContext instanceof IEvaluationContext) { Object activePart = ((IEvaluationContext) evaluationContext).getVariable(ISources.ACTIVE_PART_NAME); if (activePart instanceof LogView) { logView = (LogView) activePart; } } }