Revision 83a1a479
Added by Cherian Mathew almost 9 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java | ||
---|---|---|
37 | 37 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
38 | 38 |
import eu.etaxonomy.cdm.model.taxon.TaxonComparatorSearch; |
39 | 39 |
import eu.etaxonomy.cdm.model.taxon.TaxonNaturalComparator; |
40 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
|
40 | 41 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
41 | 42 |
import eu.etaxonomy.taxeditor.model.DataChangeBridge; |
42 | 43 |
import eu.etaxonomy.taxeditor.model.IDataChangeBehavior; |
... | ... | |
171 | 172 |
* Refresh this navigators viewer |
172 | 173 |
*/ |
173 | 174 |
public void refresh(Set objects) { |
174 |
|
|
175 | 175 |
for(Object obj : objects) { |
176 | 176 |
getCommonViewer().refresh(obj); |
177 | 177 |
} |
... | ... | |
519 | 519 |
*/ |
520 | 520 |
@Override |
521 | 521 |
public void onChange(CdmChangeEvent event) { |
522 |
// TODO Auto-generated method stub |
|
522 |
for(CdmBase cb : event.getChangedObjects()) { |
|
523 |
if(cb instanceof TaxonNode) { |
|
524 |
getCommonViewer().refresh(cb); |
|
525 |
} |
|
526 |
} |
|
523 | 527 |
|
524 | 528 |
} |
525 | 529 |
} |
Also available in: Unified diff
TaxonNavigator : added refresh of navigator on data change
TaxonNavigatorLabels : new interface with label strings used by taxon navigator handlers
RemotingChangeAcceptedTaxonToSynonymHandler : using TaxonNavigatorLabels
RemotingMoveFactualDataHandler : remoting version of move factual data handler
RemotingMoveFactualDataOperation : remoting version of move factual data operation
RemotingMoveTaxonHandler : remoting version of move taxon handler
RemotingMoveTaxonOperation : remoting version of move taxon operation
RemotingChangeAcceptedTaxonToSynonymOperation : replaced constructor input cdm entities to their uuids
RemotingCdmHandler : updated to handle other status severities and to handle warning status in post operation
RemotingCdmUpdateOperation : updated for warning status
TaxonNavigatorTest : added move taxon and move factual data tests