customPalette.setPaletteSuitability(suitability);
customPalette.setColors(colors.toArray(new Color[0]));
customPalette.setColorScheme(newScheme);
customPalette.setName(Messages.StyleEditor_theme_custom);
customPalette.setDescription(Messages.StyleEditor_theme_custom_desc);
customPalette.setType(new PaletteType());
if (!getBrewer().hasPalette(Messages.StyleEditor_theme_custom)) {
getBrewer().registerPalette(customPalette);
}
}
paletteTable.setInput(getBrewer());