}
}
else if (portletMode.equals(PortletMode.EDIT)) {
locale = renderRequest.getLocale();
I18NSource i18NSource = I18NSourceFactory.createI18NSource(locale);
final GenericUserPortletSettingsPanel editPane = new GenericUserPortletSettingsPanel(
i18NSource, getSelectedViewKeys(), getRegisteredViews());
editPane.addListener(new GenericUserPortletSettingsPanel.SaveListener() {
@Override
public void onSave() {
saveSelectedViewKeys(editPane.getSelectedViewKeys());
}
});
getMainWindow().setContent(new VerticalLayout());
getMainWindow().addComponent(editPane);
}