protected boolean checkEnabled() { Object obj = refContextObject != null ? refContextObject.get() : null; if (obj == null) { return false; } List list = null; if (obj instanceof List) { list = (List)obj; } else { list = Collections.singletonList(obj); } Iterator it = list.iterator(); while (it.hasNext()) { Object obj2 = it.next(); if (obj2 instanceof IJavaElement){ return true; } } //not enabled for now return isCUSelected(); }