import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
+import java.util.Map;
import java.util.Set;
import java.util.UUID;
*/
private void initForTaxonNode(UUID taxonNodeUuid) {
-
- TaxonNode taxonNode = CdmStore.getService(ITaxonNodeService.class).load(taxonNodeUuid);
+ List<String> taxonNodePropertyPaths = Arrays.asList(new String[] {
+ "taxon.annotations",
+ "taxon.markers",
+ "taxon.credits",
+ "taxon.extensions",
+ "taxon.rights",
+ "taxon.sources",
+ "taxon.descriptions",
+ "taxon.synonymRelations",
+ "taxon.relationsToThisTaxon",
+ "taxon.relationsFromThisTaxon",
+ "taxon.taxonNodes",
+ "taxon.name.status",
+ "taxon.name.homotypicalGroup.typifiedNames",
+ "taxon.name.taxonBases",
+ "taxon.name.descriptions.descriptionElements",
+ "taxon.name.descriptions.markers"
+
+
+ });
+
+ TaxonNode taxonNode = CdmStore.getService(ITaxonNodeService.class).load(taxonNodeUuid, taxonNodePropertyPaths);
if(taxonNode == null){
MessagingUtils.warningDialog("Not yet implemented", TaxonEditorInput.class, "Selected element is not type TaxonBase.");
CdmStore.getService(ITaxonNodeService.class).merge(taxonNode);
}
+ @Override
+ public Map<Object, List<String>> getPropertyPathsMap() {
+// Map<Object, List<String>> propertyPathsMap = new HashMap<Object, List<String>>();
+// List<String> taxonNameBasePropertyPaths = Arrays.asList(new String[] {
+// "status",
+// "taxonBases.taxonNodes",
+// "homotypicalGroup.typifiedNames.taxonBases.synonymRelations",
+// "taxonBases.relationsToThisTaxon",
+// "taxonBases.relationsFromThisTaxon",
+// "descriptions"
+// });
+// propertyPathsMap.put(TaxonNameBase.class, taxonNameBasePropertyPaths);
+//
+// List<String> taxonBasePropertyPaths = Arrays.asList(new String[] {
+// "taxon.annotations",
+// "taxon.markers",
+// "taxon.credits",
+// "taxon.extensions",
+// "taxon.rights",
+// "taxon.sources",
+// "taxon.descriptions"
+// });
+// propertyPathsMap.put(TaxonNode.class, taxonBasePropertyPaths);
+// return propertyPathsMap;
+ return null;
+ }
+
}