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) if (entityType != null && entityType.trim().length() > 0)
{ {
entityTypeFilter = "EntityType IN ("; entityTypeFilter = "EntityType IN (";
StringTokenizer tokenizer = new StringTokenizer(entityType); StringTokenizer tokenizer = new StringTokenizer(entityType, ",");
int i = 0; int i = 0;
while(tokenizer.hasMoreTokens()) { while(tokenizer.hasMoreTokens()) {
String token = tokenizer.nextToken().trim(); String token = tokenizer.nextToken().trim();

View File

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

View File

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