IDEMPIERE-275 ModelGeneratorDialog: EntityTypeFilter not working
This commit is contained in:
parent
2b2281707c
commit
35e51e9bb5
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue