ISVNLocalResource svnResource = (ISVNLocalResource)resource.getAdapter(ISVNLocalResource.class); showSvnProperties(svnResource);
if (!resource.isAccessible()) { showSvnProperties(null); } else { ISVNLocalResource svnResource = (ISVNLocalResource)resource.getAdapter(ISVNLocalResource.class); showSvnProperties(svnResource); }
	private void handlePartSelectionChanged(IWorkbenchPart part, ISelection selection) {		if (!(selection instanceof IStructuredSelection))			return;				try {			Object first = ((IStructuredSelection)selection).getFirstElement(); 			if (first instanceof IAdaptable) {				IAdaptable a = (IAdaptable) first;				Object adapter = a.getAdapter(IResource.class);				if (adapter instanceof IResource) {					IResource resource = (IResource)adapter;					ISVNLocalResource svnResource = (ISVNLocalResource)resource.getAdapter(ISVNLocalResource.class);					showSvnProperties(svnResource);				}			}		} catch (SVNException e) {		}				}