Skip to content

Commit

Permalink
JBIDE-18353: Removed existence check of table names from connection
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Sep 16, 2014
1 parent 19526d5 commit a1c9993
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,10 @@ public void validate(UIValidationContext context)
context.addValidationError(databaseTables, exception.getMessage());
}
}
List<String> valueChoices = Lists.toList(databaseTables.getValueChoices());
if (valueChoices == null || valueChoices.isEmpty())
List<String> list = Lists.toList(databaseTables.getValue());
if (list == null || list.isEmpty())
{
context.addValidationWarning(databaseTables,
"No database tables were found in the provided connection. Make sure you have at least one table in the database");
}
else
{
List<String> list = Lists.toList(databaseTables.getValue());
if (list == null || list.isEmpty())
{
context.addValidationError(databaseTables, "At least one database table must be specified");
}
context.addValidationError(databaseTables, "At least one database table must be specified");
}
}

Expand Down

0 comments on commit a1c9993

Please sign in to comment.