public void updateTreeAndLabels() { ImagePlus imp = WindowManager.getCurrentImage(); if (imp == null) return; Reader reader = ServiceMediator.getReader(); reader.updateMetadata(imp); if (imp.getOriginalFileInfo() instanceof LSMFileInfo) { lsm = (LSMFileInfo) imp.getOriginalFileInfo(); setTitle(title + " - " + lsm.fileName); detailsTree.clearSelection(); table.clearSelection(); collapseAll(); if (filterCBItem.isSelected()) updateFilteredTree(true); else updateFilteredTree(false); } }
public DetailsFrame(MasterModel masterModel) throws HeadlessException { super(); this.masterModel = masterModel; initializeGUI(); ServiceMediator.registerDetailsFrame(this); }