Revision 723b8572
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; |
|
26 | 25 |
import org.eclipse.core.runtime.ICoreRunnable; |
27 | 26 |
import org.eclipse.core.runtime.IProgressMonitor; |
28 | 27 |
import org.eclipse.core.runtime.SubMonitor; |
... | ... | |
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; |
56 |
import org.eclipse.nebula.widgets.nattable.grid.command.ClientAreaResizeCommand; |
|
57 | 57 |
import org.eclipse.nebula.widgets.nattable.grid.data.DefaultColumnHeaderDataProvider; |
58 | 58 |
import org.eclipse.nebula.widgets.nattable.grid.data.DefaultCornerDataProvider; |
59 | 59 |
import org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider; |
... | ... | |
270 | 270 |
|
271 | 271 |
|
272 | 272 |
this.layout(); |
273 |
// natTable.doCommand(new ClientAreaResizeCommand(natTable));
|
|
273 |
natTable.doCommand(new ClientAreaResizeCommand(natTable)); |
|
274 | 274 |
|
275 |
// load active table state |
|
276 |
String activeState = getNatTableState().getProperty(PersistenceDialog.ACTIVE_VIEW_CONFIGURATION_KEY); |
|
277 |
natTable.loadState(activeState!=null?activeState:StringUtils.EMPTY, getNatTableState()); |
|
275 |
// clean up table state |
|
278 | 276 |
getNatTableState().remove(NatTable.INITIAL_PAINT_COMPLETE_FLAG); |
277 |
getNatTableState().remove(PersistenceDialog.ACTIVE_VIEW_CONFIGURATION_KEY); |
|
279 | 278 |
} |
280 | 279 |
|
281 | 280 |
private List<Character> initCharacterList(FeatureNode<Character> node){ |
Also available in: Unified diff
ref #8335 minor fixes for active state evaluation