cellHasFocus);
if (c instanceof JLabel) {
final JLabel label = (JLabel) c;
if (value instanceof IRepositoryReader) {
final IRepositoryReader repo = (IRepositoryReader) value;
final URI uri = repo.getRootURI();
final String scheme = uri.getScheme();
if (scheme != null)
if (scheme.startsWith("file"))
label.setIcon(Icons.REPO_LOCAL);
else if (scheme.startsWith("http"))
label.setIcon(Icons.WEB_SERVER);
else
label.setIcon(Icons.REPO_TYPE_JAVADOC_JAR_OPEN);
label.setText(repo.getRootURI().toString());
}
else {
label.setText("(None)");
label.setIcon(null);
}