Project

General

Profile

Revision 7f3f2b38

ID7f3f2b38b992df06458e8e5e076ad158b256c840
Parent 34227fd8
Child 50c9c090

Added by Patrick Plitzner over 1 year ago

ref #7589 Layer refactoring for character matrix

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java
250 250
        /**
251 251
         * handlers and listeners
252 252
         */
253
        registerHandlersAndListeners(topMostLayer);
253
        registerHandlersAndListeners();
254 254

  
255 255
        //grab all space
256 256
        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);
......
377 377
        }
378 378

  
379 379
        // layer for event handling of GlazedLists and PropertyChanges
380
        GlazedListsEventLayer eventLayer = new GlazedListsEventLayer<>(bodyDataLayer, treeList);
380
        GlazedListsEventLayer eventLayer = new GlazedListsEventLayer<>(bodyDataLayer, (EventList)bodyDataProvider.getList());
381

  
381 382
        GlazedListTreeData treeData = new GlazedListTreeData<>(treeList);
382 383
        ITreeRowModel treeRowModel = new GlazedListTreeRowModel<>(treeData);
383 384

  
......
456 457

  
457 458
    }
458 459

  
459
    private void registerHandlersAndListeners(AbstractLayer topMostLayer) {
460
        // add the ExportCommandHandler to the ViewportLayer in order to make
461
        // exporting work
462
        topMostLayer.registerCommandHandler(new ExportCommandHandler(topMostLayer));
460
    private void registerHandlersAndListeners() {
461
        natTable.registerCommandHandler(new ExportCommandHandler(natTable));
463 462

  
464 463
        //selection listener
465 464
        E4SelectionListener selectionListener = new CellSelectionListener(part.getSelectionService(),

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)