/** {@inheritDoc} */
+ //we do not really need this anymore as closing the editors is
+ //now run before the delete operation in DeleteHandler
@Override
public void reactOnDelete(Vector<CdmDataChangeEvent> events){
for(CdmDataChangeEvent event : events){
// close open editors
- if(event.getEntity() instanceof TaxonNode){
- logger.warn("taxon node");
- }
if((event.getEntity() instanceof TaxonNode)
&& input.getTaxonNode().equals(event.getEntity())){
- EditorUtil.close(source);
- logger.debug("Closing open editor for deleted taxon.");
+ //EditorUtil.close(source);
+ logger.debug("Closing open editor for deleted taxon."); //$NON-NLS-1$
}
}
}
if(input.getTaxon().getName().equals(event.getEntity())){
// set the name of the editor window
source.setPartName();
- logger.debug("Updating title of taxons editor.");
+ logger.debug("Updating title of taxons editor."); //$NON-NLS-1$
}
}
// TODO other stuff to happen