Revision a8397603
Added by Patrick Plitzner almost 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java | ||
---|---|---|
22 | 22 |
import javax.inject.Inject; |
23 | 23 |
|
24 | 24 |
import org.apache.commons.collections4.map.LinkedMap; |
25 |
import org.apache.commons.lang.StringUtils; |
|
25 | 26 |
import org.eclipse.core.runtime.ICoreRunnable; |
26 | 27 |
import org.eclipse.core.runtime.IProgressMonitor; |
27 | 28 |
import org.eclipse.core.runtime.SubMonitor; |
... | ... | |
54 | 55 |
import org.eclipse.nebula.widgets.nattable.freeze.FreezeHelper; |
55 | 56 |
import org.eclipse.nebula.widgets.nattable.freeze.FreezeLayer; |
56 | 57 |
import org.eclipse.nebula.widgets.nattable.grid.GridRegion; |
57 |
import org.eclipse.nebula.widgets.nattable.grid.command.ClientAreaResizeCommand; |
|
58 | 58 |
import org.eclipse.nebula.widgets.nattable.grid.data.DefaultColumnHeaderDataProvider; |
59 | 59 |
import org.eclipse.nebula.widgets.nattable.grid.data.DefaultCornerDataProvider; |
60 | 60 |
import org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider; |
... | ... | |
69 | 69 |
import org.eclipse.nebula.widgets.nattable.layer.ILayer; |
70 | 70 |
import org.eclipse.nebula.widgets.nattable.layer.cell.ColumnOverrideLabelAccumulator; |
71 | 71 |
import org.eclipse.nebula.widgets.nattable.layer.stack.DefaultBodyLayerStack; |
72 |
import org.eclipse.nebula.widgets.nattable.persistence.gui.PersistenceDialog; |
|
72 | 73 |
import org.eclipse.nebula.widgets.nattable.selection.SelectionLayer; |
73 | 74 |
import org.eclipse.nebula.widgets.nattable.sort.SortHeaderLayer; |
74 | 75 |
import org.eclipse.nebula.widgets.nattable.sort.config.SingleClickSortConfiguration; |
... | ... | |
268 | 269 |
new CategoricalChartTooltip(this); |
269 | 270 |
new QuantitativeChartTooltip(this); |
270 | 271 |
|
272 |
|
|
271 | 273 |
this.layout(); |
272 |
natTable.doCommand(new ClientAreaResizeCommand(natTable)); |
|
274 |
// natTable.doCommand(new ClientAreaResizeCommand(natTable)); |
|
275 |
|
|
276 |
// load active table state |
|
277 |
String activeState = getNatTableState().getProperty(PersistenceDialog.ACTIVE_VIEW_CONFIGURATION_KEY); |
|
278 |
natTable.loadState(activeState!=null?activeState:StringUtils.EMPTY, getNatTableState()); |
|
279 |
getNatTableState().remove(NatTable.INITIAL_PAINT_COMPLETE_FLAG); |
|
273 | 280 |
} |
274 | 281 |
|
275 | 282 |
private List<Character> initCharacterList(FeatureNode<Character> node){ |
Also available in: Unified diff
ref #8335 Add default state to table states