Project

General

Profile

« Previous | Next » 

Revision 046fa1ce

Added by Katja Luther over 6 years ago

ref #6159: minor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionEditorHelper.java
31 31
 */
32 32
public class DistributionEditorHelper {
33 33

  
34
    public static SelectionChangedEvent getDistributionForColumn(SelectionChangedEvent event) {
34
    public static Distribution getDistributionForColumn(SelectionChangedEvent event) {
35 35
        //      List<TaxonDescription> listTaxonDescriptions = descriptionService.listTaxonDescriptions(taxon, null, null,
36 36
        //      null, null, null, DESC_INIT_STRATEGY);
37 37
        TableViewer viewer = null;
......
65 65
                      if (PreferencesUtil.isShowIdInVocabularyInChecklistEditor()){
66 66
                          if (column.getText().equalsIgnoreCase(distribution.getArea().getIdInVocabulary())) {
67 67
                              StructuredSelection selection = new StructuredSelection(distribution);
68
                              SelectionChangedEvent newEvent = new SelectionChangedEvent(event.getSelectionProvider(), selection);
69
                              return newEvent;
68
//                              SelectionChangedEvent newEvent = new SelectionChangedEvent(event.getSelectionProvider(), selection);
69
                              return distribution;
70 70
                          }
71 71
                      }else{
72 72
                          if (column.getText().equalsIgnoreCase(distribution.getArea().getTitleCache())) {
73 73
                              StructuredSelection selection = new StructuredSelection(distribution);
74
                              SelectionChangedEvent newEvent = new SelectionChangedEvent(event.getSelectionProvider(), selection);
75
                              return newEvent;
74
//                              SelectionChangedEvent newEvent = new SelectionChangedEvent(event.getSelectionProvider(), selection);
75
                              return distribution;
76 76
                          }
77 77
                      }
78 78
                  }

Also available in: Unified diff