Revision 31782a30
Added by Patrick Plitzner almost 5 years ago
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
ref #7095 Fix layer initialisation when toggling list and tree view