if (Util.isEmptyString(preferences.getProperty("outputPattern"))) {
preferences.setProperty("outputPattern", "*.java");
}
BindingBuilder builder = new BindingBuilder(
getApplication().getBindingFactory(),
this);
builder.bindToAction(view.getManageTemplatesLink(), "popPreferencesAction()");
builder.bindToTextField(
view.getSuperclassPackage(),
"preferences.superclassPackage").updateView();
builder.bindToComboSelection(
view.getGenerationMode(),
"preferences.property['mode']").updateView();
builder.bindToComboSelection(
view.getGeneratorVersion(),
"preferences.property['version']").updateView();
builder.bindToStateChange(
view.getOverwrite(),
"preferences.booleanProperty['overwrite']").updateView();
builder
.bindToStateChange(
view.getPairs(),
"preferences.booleanProperty['pairs']")
.updateView();
builder.bindToStateChange(
view.getUsePackagePath(),
"preferences.booleanProperty['usePackagePath']").updateView();
subTemplate = builder.bindToComboSelection(
view.getSubclassTemplate(),
"preferences.subclassTemplate");
superTemplate = builder.bindToComboSelection(
view.getSuperclassTemplate(),
"preferences.superclassTemplate");
builder.bindToTextField(
view.getOutputPattern(),
"preferences.property['outputPattern']").updateView();
updateTemplates();
}