1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use re_viewer_context::{UiLayout, ViewerContext};

impl crate::DataUi for re_log_types::StoreId {
    fn data_ui(
        &self,
        ctx: &ViewerContext<'_>,
        ui: &mut egui::Ui,
        ui_layout: UiLayout,
        query: &re_chunk_store::LatestAtQuery,
        db: &re_entity_db::EntityDb,
    ) {
        if let Some(entity_db) = ctx.store_context.bundle.get(self) {
            entity_db.data_ui(ctx, ui, ui_layout, query, db);
        } else {
            ui.label(format!("{} ID {} (not found)", self.kind, self.id));
        }
    }
}