bus.post(new LoadImage(data.getId(), data.getDefaultPixels().getId(), data.getName()));
bus.post(new ViewImage(data.getId(), 166, data.getName()));
    public void execute()    {        Browser browser = model.getSelectedBrowser();        if (browser == null) return;        Object ho;        if (hierarchyObject != null) ho = hierarchyObject;        else {            TreeImageDisplay display = browser.getSelectedDisplay();            if (display == null) return;            ho = display.getUserObject();        }        EventBus bus = TreeViewerAgent.getRegistry().getEventBus();        Class root = convertRootLevel(browser.getRootLevel());        if (ho instanceof ImageData) {            ImageData data = (ImageData) ho;            bus.post(new LoadImage(data.getId(),                     data.getDefaultPixels().getId(), data.getName()));        } else if (ho instanceof DatasetData)            bus.post(new Browse(((DatasetData) ho).getId(), Browse.DATASET,                     root, browser.getRootID()));         else if (ho instanceof ProjectData)            bus.post(new Browse(((ProjectData) ho).getId(), Browse.PROJECT,                    root, browser.getRootID()));         else if (ho instanceof CategoryData)            bus.post(new Browse(((CategoryData) ho).getId(), Browse.CATEGORY,                     root, browser.getRootID()));         else if (ho instanceof CategoryGroupData)            bus.post(new Browse(((CategoryGroupData) ho).getId(),                          Browse.CATEGORY_GROUP, root, browser.getRootID()));     }