return view;
}
public DefaultClassGenerator createGenerator() {
DefaultClassGenerator generator = super.createGenerator();
String mode = modesByLabel
.get(view.getGenerationMode().getSelectedItem())
.toString();
generator.setMode(mode);
String superKey = view.getSuperclassTemplate().getSelectedItem().toString();
String superTemplate = templateManager.getTemplatePath(superKey);
generator.setSuperTemplate(superTemplate);
String subKey = view.getSubclassTemplate().getSelectedItem().toString();
String subTemplate = templateManager.getTemplatePath(subKey);
generator.setTemplate(subTemplate);
if (view.getGeneratorVersion().getSelectedItem() != null) {
generator.setVersionString(view
.getGeneratorVersion()
.getSelectedItem()
.toString());
}
generator.setOverwrite(view.getOverwrite().isSelected());
generator.setUsePkgPath(view.getUsePackagePath().isSelected());
generator.setMakePairs(view.getPairs().isSelected());
if (!Util.isEmptyString(view.getOutputPattern().getText())) {
generator.setOutputPattern(view.getOutputPattern().getText());
}
return generator;
}