use of org.eclipse.nebula.widgets.nattable.grid.command.InitializeGridCommand in project nebula.widgets.nattable by eclipse.
the class NatTable method configure.
/**
* Processes all the registered {@link IConfiguration} (s). All the
* underlying layers are walked and given a chance to configure. Note: all
* desired configuration tweaks must be done <i>before</i> this method is
* invoked.
*/
public void configure() {
if (this.underlyingLayer == null) {
// $NON-NLS-1$
throw new IllegalStateException("Layer must be set before configure is called");
}
if (this.underlyingLayer != null) {
this.underlyingLayer.configure((ConfigRegistry) getConfigRegistry(), getUiBindingRegistry());
}
for (IConfiguration configuration : this.configurations) {
configuration.configureLayer(this);
configuration.configureRegistry(getConfigRegistry());
configuration.configureUiBindings(getUiBindingRegistry());
}
// Once everything is initialized and properly configured we will
// now formally initialize the grid
doCommand(new InitializeGridCommand(this));
}
Aggregations