use of org.jboss.hal.core.finder.FinderColumn in project console by hal.
the class ApplicationFinderPresenter method updateBreadcrumb.
@SuppressWarnings("unchecked")
private void updateBreadcrumb() {
FinderPath applicationPath = finderPath();
if (applicationPath != null) {
// try to connect segments with existing columns from the finder
for (FinderSegment segment : applicationPath) {
FinderColumn column = finder.getColumn(segment.getColumnId());
if (column != null) {
segment.connect(column);
} else {
logger.warn("Unable to find column '{}' to connect breadcrumb segment '{}' for token '{}'", segment.getColumnId(), segment, getProxy().getNameToken());
}
}
finder.getContext().reset(applicationPath);
}
// The breadcrumb is part of the header. Notify the header presenter to take care of updating the breadcrumb
getEventBus().fireEvent(new FinderContextEvent(finder.getContext()));
}
Aggregations