public void saveSettings() {
if (!(widget instanceof ConfigurableSnippetWidget))
return;
ConfigurableSnippetWidget csw = (ConfigurableSnippetWidget) widget;
if (settings == null) {
settings = new TaskScheduleChartSettings();
settings.setChartID(snip.getId());
settings.setTaskListID(taskList.getID());
}
Map params = csw.getConfigurationParameters();
settings.setParameters(params);
settings.setChartVersion(snip.getVersion());
settings.save(ctx.getData());
setDirty(false);
}