use of org.openremote.app.client.assets.tenant.AssetsTenantPlace in project openremote by openremote.
the class AssetsDashboardActivity method start.
@Override
public void start(AcceptsView container, EventBus eventBus, Collection<EventRegistration> registrations) {
view.setPresenter(this);
container.setWidget(view.asWidget());
registrations.add(eventBus.register(AssetBrowserSelection.class, event -> {
if (event.getSelectedNode() instanceof TenantTreeNode) {
environment.getPlaceController().goTo(new AssetsTenantPlace(event.getSelectedNode().getId()));
} else if (event.getSelectedNode() instanceof AssetTreeNode) {
environment.getPlaceController().goTo(new AssetViewPlace(event.getSelectedNode().getId()));
}
}));
assetBrowserPresenter.clearSelection();
}
Aggregations