Revision ad7201d3
Added by Andreas Müller over 3 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/e4/PolytomousKeyViewPartE4.java | ||
---|---|---|
1 | 1 |
/** |
2 |
* |
|
3 |
*/ |
|
2 |
* Copyright (C) 2007 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
4 | 9 |
package eu.etaxonomy.taxeditor.navigation.key.polytomous.e4; |
5 | 10 |
|
6 | 11 |
import java.util.List; |
... | ... | |
62 | 67 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
63 | 68 |
|
64 | 69 |
/** |
65 |
* |
|
66 | 70 |
* @author pplitzner |
67 | 71 |
* @since Sep 28, 2017 |
68 |
* |
|
69 | 72 |
*/ |
70 | 73 |
public class PolytomousKeyViewPartE4 implements |
71 |
IConversationEnabled, ICdmEntitySessionEnabled, IPostOperationEnabled,
|
|
72 |
ICdmChangeListener { |
|
74 |
IConversationEnabled, ICdmEntitySessionEnabled<PolytomousKey>, IPostOperationEnabled,
|
|
75 |
ICdmChangeListener {
|
|
73 | 76 |
|
74 | 77 |
private class FilterModifyListener implements ModifyListener{ |
75 | 78 |
@Override |
... | ... | |
96 | 99 |
} |
97 | 100 |
} |
98 | 101 |
|
99 |
|
|
100 | 102 |
public static final String ID = "eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart"; //$NON-NLS-1$ |
101 | 103 |
|
102 | 104 |
public static final String OPEN_COMMAND_ID = "eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"; //$NON-NLS-1$ |
... | ... | |
175 | 177 |
} |
176 | 178 |
}); |
177 | 179 |
|
178 |
|
|
179 |
|
|
180 | 180 |
//propagate selection |
181 | 181 |
selectionChangedListener = (event -> selService.setSelection(event.getSelection())); |
182 | 182 |
viewer.addSelectionChangedListener(selectionChangedListener); |
... | ... | |
302 | 302 |
if(event.getAction() == Action.Delete && PolytomousKey.class.equals(event.getEntityType())) { |
303 | 303 |
refresh(); |
304 | 304 |
} |
305 |
|
|
306 | 305 |
} |
307 | 306 |
|
308 | 307 |
@Override |
309 | 308 |
public Map<Object, List<String>> getPropertyPathsMap() { |
310 | 309 |
return null; |
311 | 310 |
} |
312 |
|
|
313 |
} |
|
311 |
} |
Also available in: Unified diff
cleanup and generics for ICdmEntitySessionEnabled