if (!(selection instanceof IStructuredSelection)) return false; IStructuredSelection ss = (IStructuredSelection)selection; if(ss.size() != 1) return false; currentSelection = getLogEntry(ss); return true;
return selection instanceof IStructuredSelection && ((IStructuredSelection)selection).size() == 1;
            public boolean isEnabled() {                ISelection selection = getSelection();                if (!(selection instanceof IStructuredSelection)) return false;                IStructuredSelection ss = (IStructuredSelection)selection;                if(ss.size() != 1) return false;                currentSelection = getLogEntry(ss);                return true;            }