Ejemplo n.º 1
0
 private WizardFragment getEditGeneratorConfigurationWizardFragment(
     IGeneratorConfiguration generatorConfiguration) {
   WizardFragment fragment =
       JM2TUI.getWizardFragment(generatorConfiguration.getGeneratorType().getId());
   if (fragment != null) {
     return fragment;
   }
   return new NewGeneratorConfigurationWizardFragment();
 }
Ejemplo n.º 2
0
 @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;
 }