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)
|
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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue