Exemple #1
0
  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);
      }
    }
  }
Exemple #2
0
 public void execute(Object o) {
   sed.removeAttachment(IrisDisplayManager.FIT_MODEL);
   idm.removeVisualEditor();
   display(sed);
 }