private WizardFragment getEditGeneratorConfigurationWizardFragment(
     IGeneratorConfiguration generatorConfiguration) {
   WizardFragment fragment =
       JM2TUI.getWizardFragment(generatorConfiguration.getGeneratorType().getId());
   if (fragment != null) {
     return fragment;
   }
   return new NewGeneratorConfigurationWizardFragment();
 }
 @Override
 public boolean performOk() {
   // Save JM2T settings.
   IJM2TProject project = JM2TCore.create(getProject());
   try {
     project.setRawGeneratorConfiguration(generatorConfigurationComp.getElements(), null);
   } catch (CoreException e) {
     EclipseUtil.openError(super.getShell(), Messages.savingSettingsError, JM2TUI.createStatus(e));
   }
   return true;
 }