fProfileManager, true);
modifyDialog.open();
}
private void saveButtonPressed() {
Profile selected = fProfileManager.getSelected();
final FileDialog dialog = new FileDialog(fComposite.getShell(),
SWT.SAVE);
dialog.setText(FormatterMessages.CodingStyleConfigurationBlock_save_profile_dialog_title);
dialog.setFilterExtensions(new String[] { "*.xml" }); //$NON-NLS-1$
// set default file name to profile name
dialog.setFileName(selected.getName() + ".xml");
final String lastPath = FormatterUIPlugin.getDefault()
.getDialogSettings().get(DIALOGSTORE_LASTSAVEPATH);
if (lastPath != null) {
dialog.setFilterPath(lastPath);