if (o instanceof SharedFileInfo) { selectedFile = (SharedFileInfo) o; } else { selectedFile = null; tableViewer.setSelection(null); }
selectedFile = (o instanceof SharedFileInfo) ? (SharedFileInfo) o : null;
        public void selectionChanged(SelectionChangedEvent event) {            IStructuredSelection sSel = (IStructuredSelection) event.getSelection();            Object o = sSel.getFirstElement();            if (o instanceof SharedFileInfo) {                selectedFile = (SharedFileInfo) o;            } else {                selectedFile = null;                tableViewer.setSelection(null);            }            selectedFiles.clear();            for (Iterator it = sSel.iterator(); it.hasNext();) {                o = it.next();                if (o instanceof SharedFileInfo) {                    selectedFiles.add((SharedFileInfo) o);                }            }        }