ISelection selection = getSelection(); if (!(selection instanceof IStructuredSelection)) return false; IStructuredSelection ss = (IStructuredSelection)selection; if(ss.size() != 1) return false; currentSelection = getLogEntry(ss); return true;
ISelection selection = getSelection(); 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;		        }