use of org.archicontribs.modelrepository.views.repositories.ModelRepositoryTreeViewer.ModelRepoTreeLabelProvider in project archi-modelrepository-plugin by archi-contribs.
the class ModelRepositoryView method updateStatusBar.
protected void updateStatusBar(ISelection selection) {
Object obj = ((IStructuredSelection) selection).getFirstElement();
if (obj instanceof IArchiRepository) {
IArchiRepository repo = (IArchiRepository) obj;
ModelRepoTreeLabelProvider labelProvider = (ModelRepoTreeLabelProvider) getViewer().getLabelProvider();
Image image = labelProvider.getImage(repo);
// $NON-NLS-1$
String text = repo.getName() + " - " + labelProvider.getStatusText(repo);
getViewSite().getActionBars().getStatusLineManager().setMessage(image, text);
} else {
// $NON-NLS-1$
getViewSite().getActionBars().getStatusLineManager().setMessage(null, "");
}
}
Aggregations