Revision 8863eeec
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java | ||
---|---|---|
83 | 83 |
TaxonComparatorSearch comparator = new TaxonComparatorSearch(); |
84 | 84 |
TaxonNodeComparator viewerComparator = new TaxonNodeComparator(comparator); |
85 | 85 |
this.getCommonViewer().setComparator(viewerComparator); |
86 |
this.getCommonViewer().addSelectionChangedListener(new ISelectionChangedListener() { |
|
87 |
|
|
88 |
@Override |
|
89 |
public void selectionChanged(SelectionChangedEvent arg0) { |
|
90 |
IStructuredSelection selection = (IStructuredSelection) getCommonViewer().getSelection(); |
|
91 |
|
|
92 |
Object firstElement = selection.getFirstElement(); |
|
93 |
// |
|
94 |
if (!(firstElement instanceof Classification)){ |
|
95 |
//NavigationUtil.selectInNavigator(firstElement, null); |
|
96 |
NavigationUtil.openEditor(firstElement); |
|
97 |
} |
|
98 |
|
|
99 |
} |
|
100 |
} ); |
|
86 |
// this.getCommonViewer().addSelectionChangedListener(new ISelectionChangedListener() {
|
|
87 |
// |
|
88 |
// @Override
|
|
89 |
// public void selectionChanged(SelectionChangedEvent arg0) {
|
|
90 |
// IStructuredSelection selection = (IStructuredSelection) getCommonViewer().getSelection();
|
|
91 |
// |
|
92 |
// Object firstElement = selection.getFirstElement();
|
|
93 |
// //
|
|
94 |
// if (!(firstElement instanceof Classification)){
|
|
95 |
// //NavigationUtil.selectInNavigator(firstElement, null);
|
|
96 |
// NavigationUtil.openEditor(firstElement);
|
|
97 |
// }
|
|
98 |
// |
|
99 |
// }
|
|
100 |
// } );
|
|
101 | 101 |
|
102 | 102 |
if (CdmStore.isActive()) { |
103 | 103 |
|
Also available in: Unified diff
Commenting out single click opening of name editor (ticket 4300)