Revision 51308344
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java | ||
---|---|---|
20 | 20 |
import java.util.stream.Collectors; |
21 | 21 |
|
22 | 22 |
import javax.inject.Inject; |
23 |
import javax.inject.Named; |
|
23 | 24 |
|
24 | 25 |
import org.apache.commons.collections4.map.LinkedMap; |
25 | 26 |
import org.eclipse.core.runtime.ICoreRunnable; |
... | ... | |
28 | 29 |
import org.eclipse.core.runtime.jobs.IJobChangeEvent; |
29 | 30 |
import org.eclipse.core.runtime.jobs.Job; |
30 | 31 |
import org.eclipse.core.runtime.jobs.JobChangeAdapter; |
32 |
import org.eclipse.e4.core.di.annotations.Optional; |
|
31 | 33 |
import org.eclipse.e4.ui.di.UISynchronize; |
32 | 34 |
import org.eclipse.e4.ui.services.EMenuService; |
35 |
import org.eclipse.e4.ui.services.IServiceConstants; |
|
33 | 36 |
import org.eclipse.jface.layout.GridDataFactory; |
34 | 37 |
import org.eclipse.jface.viewers.ComboViewer; |
35 | 38 |
import org.eclipse.jface.viewers.IStructuredSelection; |
... | ... | |
43 | 46 |
import org.eclipse.nebula.widgets.nattable.data.IDataProvider; |
44 | 47 |
import org.eclipse.nebula.widgets.nattable.data.ListDataProvider; |
45 | 48 |
import org.eclipse.nebula.widgets.nattable.export.command.ExportCommandHandler; |
49 |
import org.eclipse.nebula.widgets.nattable.extension.e4.selection.E4SelectionListener; |
|
46 | 50 |
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsEventLayer; |
47 | 51 |
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsSortModel; |
48 | 52 |
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.tree.GlazedListTreeData; |
... | ... | |
446 | 450 |
// exporting work |
447 | 451 |
topMostLayer.registerCommandHandler(new ExportCommandHandler(topMostLayer)); |
448 | 452 |
|
449 |
//propagate single cell selection |
|
450 |
natTable.addLayerListener(new CellSelectionListener(part)); |
|
453 |
//selection listener |
|
454 |
E4SelectionListener selectionListener = new CellSelectionListener(part.getSelectionService(), |
|
455 |
bodyLayer.getSelectionLayer(), bodyDataProvider, part); |
|
456 |
bodyLayer.getSelectionLayer().addLayerListener(selectionListener); |
|
457 |
selectionListener.setFullySelectedRowsOnly(false); |
|
451 | 458 |
|
452 | 459 |
//register handler for view configuration menu |
453 | 460 |
natTable.registerCommandHandler(toolbar.getDisplayPersistenceDialogCommandHandler()); |
Also available in: Unified diff
ref #7674 Allow editing descriptions in details view