else if (object instanceof IRewriteEntry) {
IRewriteEntry entry = (IRewriteEntry) object;
result = entry.getStartString() + "[...] " + XMLCatalogMessages.UI_LABEL_ARROW + " " + entry.getRewritePrefix() + "[...]";
}
else if (object instanceof INextCatalog) {
INextCatalog nextCatalog = (INextCatalog) object;
// result = nextCatalog.getCatalogLocation();
result = URIUtils.convertURIToLocation(nextCatalog.getCatalogLocation());
if (nextCatalog.getCatalogLocation().startsWith("file:")) {
result += " (" + XMLCatalogMessages.UI_LABEL_FILE_SYSTEM_RESOURCE + ")";
}
else if (nextCatalog.getCatalogLocation().startsWith("platform:")) {
result += " (" + XMLCatalogMessages.UI_LABEL_PLATFORM_RESOURCE + ")";
}
}
else if (object instanceof IDelegateCatalog) {
IDelegateCatalog nextCatalog = (IDelegateCatalog) object;
// result = nextCatalog.getCatalogLocation();
result = nextCatalog.getStartString() + " " + XMLCatalogMessages.UI_LABEL_ARROW + " " + URIUtils.convertURIToLocation(nextCatalog.getCatalogLocation());
if (nextCatalog.getCatalogLocation().startsWith("file:")) {
result += " (" + XMLCatalogMessages.UI_LABEL_FILE_SYSTEM_RESOURCE + ")";
}
else if (nextCatalog.getCatalogLocation().startsWith("platform:")) {
result += " (" + XMLCatalogMessages.UI_LABEL_PLATFORM_RESOURCE + ")";
}
}
result = TextProcessor.process(result);
return result != null ? result : object.toString();