IDEMPIERE-275 ModelGeneratorDialog: EntityTypeFilter not working

This commit is contained in:
Heng Sin Low 2012-05-28 14:23:09 +08:00
parent 2b2281707c
commit 35e51e9bb5
3 changed files with 5 additions and 5 deletions

View File

@ -843,7 +843,7 @@ public class ModelClassGenerator
if (entityType != null && entityType.trim().length() > 0)
{
entityTypeFilter = "EntityType IN (";
StringTokenizer tokenizer = new StringTokenizer(entityType);
StringTokenizer tokenizer = new StringTokenizer(entityType, ",");
int i = 0;
while(tokenizer.hasMoreTokens()) {
String token = tokenizer.nextToken().trim();

View File

@ -127,12 +127,12 @@ public class ModelGeneratorDialog extends JDialog implements ActionListener {
return;
}
this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
if (fGenerateClass.isSelected()) {
ModelClassGenerator.generateSource(folder, packageName, entityType, tableName);
}
if (fGenerateInterface.isSelected()) {
ModelInterfaceGenerator.generateSource(folder, packageName, entityType, tableName);
}
if (fGenerateClass.isSelected()) {
ModelClassGenerator.generateSource(folder, packageName, entityType, tableName);
}
this.dispose();
} else if (e.getSource() == bCancel) {
this.dispose();

View File

@ -778,7 +778,7 @@ public class ModelInterfaceGenerator
if (entityType != null && entityType.trim().length() > 0)
{
entityTypeFilter = "EntityType IN (";
StringTokenizer tokenizer = new StringTokenizer(entityType);
StringTokenizer tokenizer = new StringTokenizer(entityType, ",");
int i = 0;
while(tokenizer.hasMoreTokens()) {
String token = tokenizer.nextToken().trim();