import eu.etaxonomy.cdm.model.taxon.Taxon;
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
+import eu.etaxonomy.taxeditor.event.EventUtility;
+import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
import eu.etaxonomy.taxeditor.model.ImageResources;
import eu.etaxonomy.taxeditor.ui.dialog.selection.TaxonBaseSelectionDialog;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
+import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent;
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
name = taxon.getName();
TaxonRelationship rel = getEntity();
rel.setFromTaxon(taxon);
+ taxon.addTaxonRelation(rel);
setEntity(rel);
setTaxonBase(taxon);
+// firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));
+ detailElement.firePropertyChangeEvent(new CdmPropertyChangeEvent(detailElement, null));
+ EventUtility.postEvent(WorkbenchEventConstants.REFRESH_DETAILS, true);
+ EventUtility.postEvent(WorkbenchEventConstants.REFRESH_SUPPLEMENTAL, true);
+ EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, rel.getToTaxon());
+ ((TaxonRelationshipDetailElement)detailElement).getTaxonElement().setSelected(true);;
+
- firePropertyChangeEvent(TaxonRelationshipDetailSection.this);
}
}
};
return toolBarManager.createControl(this);
}
+
+
}