public ConfigSetDialog(Shell parent, PropertiesProject project,
String configSetName, IBeansConfigSet.Type type) {
super(parent);
this.project = project;
if (configSetName == null) {
configSet = new PropertiesConfigSet(project, (String) null, type);
title = BeansUIPlugin.getResourceString(TITLE_NEW);
mode = Mode.NEW;
} else {
configSet = (PropertiesConfigSet) project.getConfigSet(configSetName);
title = BeansUIPlugin.getResourceString(TITLE_EDIT);