Project

General

Profile

Revision 31782a30

ID31782a3075bb618ffe0182bf251dd950936958cd
Parent 8dcb3ae4
Child 7be566bc

Added by Patrick Plitzner over 2 years ago

ref #7095 Fix layer initialisation when toggling list and tree view

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java
33 33
import org.eclipse.jface.viewers.StructuredSelection;
34 34
import org.eclipse.jface.window.Window;
35 35
import org.eclipse.nebula.widgets.nattable.NatTable;
36
import org.eclipse.nebula.widgets.nattable.command.VisualRefreshCommand;
37 36
import org.eclipse.nebula.widgets.nattable.config.AbstractRegistryConfiguration;
38 37
import org.eclipse.nebula.widgets.nattable.config.CellConfigAttributes;
39 38
import org.eclipse.nebula.widgets.nattable.config.ConfigRegistry;
......
54 53
import org.eclipse.nebula.widgets.nattable.freeze.FreezeHelper;
55 54
import org.eclipse.nebula.widgets.nattable.freeze.FreezeLayer;
56 55
import org.eclipse.nebula.widgets.nattable.grid.GridRegion;
57
import org.eclipse.nebula.widgets.nattable.grid.command.ClientAreaResizeCommand;
58 56
import org.eclipse.nebula.widgets.nattable.grid.data.DefaultColumnHeaderDataProvider;
59 57
import org.eclipse.nebula.widgets.nattable.grid.data.DefaultCornerDataProvider;
60 58
import org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider;
......
492 490

  
493 491
    private void toggleTreeFlat(boolean isTree, Button btnToggleFlat, Button btnToggleTree, Button btnCollapseAll, Button btnExpandAll, Button btnFreezeSuppInfo) {
494 492
        isTreeView = isTree;
495
        createLayers(isTree);
493
        createTable(isTree);
496 494
        btnToggleFlat.setEnabled(isTree);
497 495
        btnToggleTree.setEnabled(!isTree);
498 496
        btnCollapseAll.setEnabled(isTree);
499 497
        btnExpandAll.setEnabled(isTree);
500
        natTable.doCommand(new ClientAreaResizeCommand(natTable));
501
        natTable.doCommand(new VisualRefreshCommand());
502
        freezeSupplementalColumns(btnFreezeSuppInfo.getSelection());
503 498
    }
504 499

  
505 500
    public boolean isTreeView() {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)