Revision 8734b84a
Added by Patrick Plitzner about 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java | ||
---|---|---|
45 | 45 |
import org.eclipse.nebula.widgets.nattable.copy.command.InternalPasteDataCommandHandler; |
46 | 46 |
import org.eclipse.nebula.widgets.nattable.data.IDataProvider; |
47 | 47 |
import org.eclipse.nebula.widgets.nattable.data.ListDataProvider; |
48 |
import org.eclipse.nebula.widgets.nattable.edit.command.UpdateDataCommandHandler; |
|
49 | 48 |
import org.eclipse.nebula.widgets.nattable.export.command.ExportCommandHandler; |
50 | 49 |
import org.eclipse.nebula.widgets.nattable.extension.e4.selection.E4SelectionListener; |
51 | 50 |
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsEventLayer; |
... | ... | |
188 | 187 |
|
189 | 188 |
private boolean isShowTooltips = true; |
190 | 189 |
|
191 |
private DataLayer bodyDataLayer; |
|
192 |
|
|
193 | 190 |
public CharacterMatrix(Composite parent, CharacterMatrixPart part) { |
194 | 191 |
super(parent, SWT.NONE); |
195 | 192 |
this.part = part; |
... | ... | |
357 | 354 |
* |
358 | 355 |
|
359 | 356 |
*/ |
360 |
bodyDataLayer = new DataLayer(bodyDataProvider); |
|
357 |
DataLayer bodyDataLayer = new DataLayer(bodyDataProvider);
|
|
361 | 358 |
|
362 | 359 |
//register labels |
363 | 360 |
CharacterMatrixConfigLabelAccumulator labelAccumulator = new CharacterMatrixConfigLabelAccumulator(this); |
... | ... | |
472 | 469 |
new InternalPasteDataCommandHandler(bodyLayer.getSelectionLayer(), natTable.getInternalCellClipboard())); |
473 | 470 |
natTable.registerCommandHandler( |
474 | 471 |
new InternalCopyDataCommandHandler(bodyLayer.getSelectionLayer(), natTable.getInternalCellClipboard())); |
475 |
natTable.registerCommandHandler(new UpdateDataCommandHandler(bodyDataLayer)); |
|
476 | 472 |
} |
477 | 473 |
|
478 | 474 |
private void configureNatTable(boolean treeView, |
Also available in: Unified diff
ref #7580 Remove duplicate UpdateCommandHandler