troubles with nattable.configure() [message #1689835] |
Tue, 24 March 2015 12:48 |
|
Hello,
I have problem doing
this.natTable.setConfigRegistry(configRegistry);
this.natTable.setUiBindingRegistry(new UiBindingRegistry(this.natTable));
this.natTable.configure();
I do this during the creation of the table. it is OK, but I call them too
after a column addition in order to reconfigure the new column.
I would like to know if a can set a ConfigRegistry and a UIBindingRegistry, then call the configure method several time for a given instance of the NatTable widget.
The result of the second call is a table where only the grid is displayed (with the correct number of rows and columns). The table is empty, and the appearence of the header is ignored.
It worked find on Nattable 1.1.0. Maybe the problem comes from NaTable 1.2.0, but not sure... I continue to investigate
/Vincent Lorenzo
|
|
|
|
Re: troubles with nattable.configure() [message #1690095 is a reply to message #1689840] |
Wed, 25 March 2015 09:00 |
|
Hi Dirk,
thank you for your answer. As you said, doing this, I assumed than the ConfigRegistry was never referenced by others classes than the nattable widget. I agree that I should refactore my code to avoid to have to call configure more than one time. Nevertheless I found the origin of my problem. It comes from the bugfix https://bugs.eclipse.org/bugs/show_bug.cgi?id=447145.
A new call to AbstractLayer#configure(ConfigRegistry configRegistry, UiBindingRegistry uiBindingRegistry) is ignored... Now I need to see how to change my code.
|
|
|
Powered by
FUDForum. Page generated in 0.05014 seconds