public void invalidateModel(ExtSed sed) { if (sed != null) { SpectrumContainer container = (SpectrumContainer) sed.getAttachment(IrisDisplayManager.FIT_MODEL); if (container != null) { ModelManager2 mm = container.getModelManager(); if (mm != null && mm.isActive()) { mm.dispose(); } sed.removeAttachment(IrisDisplayManager.FIT_MODEL); } } }
public void execute(Object o) { sed.removeAttachment(IrisDisplayManager.FIT_MODEL); idm.removeVisualEditor(); display(sed); }