Revision b2128023
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java | ||
---|---|---|
43 | 43 |
import org.eclipse.jface.window.Window; |
44 | 44 |
import org.eclipse.nebula.widgets.nattable.NatTable; |
45 | 45 |
import org.eclipse.nebula.widgets.nattable.command.StructuralRefreshCommand; |
46 |
import org.eclipse.nebula.widgets.nattable.command.VisualRefreshCommand; |
|
46 | 47 |
import org.eclipse.nebula.widgets.nattable.config.AbstractRegistryConfiguration; |
47 | 48 |
import org.eclipse.nebula.widgets.nattable.config.CellConfigAttributes; |
48 | 49 |
import org.eclipse.nebula.widgets.nattable.config.ConfigRegistry; |
... | ... | |
387 | 388 |
btnCollapseAll.setEnabled(isTree); |
388 | 389 |
btnExpandAll.setEnabled(isTree); |
389 | 390 |
natTable.doCommand(new StructuralRefreshCommand()); |
391 |
natTable.doCommand(new VisualRefreshCommand()); |
|
390 | 392 |
} |
391 | 393 |
|
392 | 394 |
public void init(UUID workingSetUuid, boolean treeView) { |
... | ... | |
407 | 409 |
} |
408 | 410 |
// use the SortedList constructor with 'null' for the Comparator |
409 | 411 |
// because the Comparator will be set by configuration |
410 |
SortedList<Object> sortedList = new SortedList<>(descriptions, null);
|
|
412 |
SortedList<Object> sortedList = new SortedList<>(descriptions, new MatrixRowComparator());
|
|
411 | 413 |
// wrap the SortedList with the TreeList |
412 | 414 |
TreeList<Object> treeList = new TreeList(sortedList, new DescriptionTreeFormat(workingSet.getMaxRank()), TreeList.NODES_START_EXPANDED); |
413 | 415 |
/** |
Also available in: Unified diff
ref #7095 Extract row comparator to own class file