Search in sources :

Example 1 with ThemeManager

use of org.eclipse.nebula.widgets.nattable.style.theme.ThemeManager in project nebula.widgets.nattable by eclipse.

the class NatTable method getConfigRegistry.

/**
 * @return {@link IConfigRegistry} used to hold the configuration bindings
 *         by Layer, DisplayMode and Config labels.
 */
public IConfigRegistry getConfigRegistry() {
    if (this.configRegistry == null) {
        this.configRegistry = new ConfigRegistry();
        this.themeManager = new ThemeManager(this.configRegistry);
    }
    return this.configRegistry;
}
Also used : ConfigRegistry(org.eclipse.nebula.widgets.nattable.config.ConfigRegistry) IConfigRegistry(org.eclipse.nebula.widgets.nattable.config.IConfigRegistry) ThemeManager(org.eclipse.nebula.widgets.nattable.style.theme.ThemeManager)

Example 2 with ThemeManager

use of org.eclipse.nebula.widgets.nattable.style.theme.ThemeManager in project nebula.widgets.nattable by eclipse.

the class NatTable method setConfigRegistry.

public void setConfigRegistry(IConfigRegistry configRegistry) {
    if (this.autoconfigure) {
        // $NON-NLS-1$
        throw new IllegalStateException("May only set config registry post construction if autoconfigure is turned off");
    }
    this.configRegistry = configRegistry;
    this.themeManager = new ThemeManager(configRegistry);
}
Also used : ThemeManager(org.eclipse.nebula.widgets.nattable.style.theme.ThemeManager)

Aggregations

ThemeManager (org.eclipse.nebula.widgets.nattable.style.theme.ThemeManager)2 ConfigRegistry (org.eclipse.nebula.widgets.nattable.config.ConfigRegistry)1 IConfigRegistry (org.eclipse.nebula.widgets.nattable.config.IConfigRegistry)1