DatabaseObject[] objects = info.getDatabaseObjects();
switch (objects.length) {
case 0:
return null;
case 1:
SqlScript existingScript = structure.getSqlScript();
String existingWhereClause = (existingScript == null) ? "" :
existingScript.getWhereClause();
BeginEndQuote quotes = structure.getBeginEndQuote();
return new SingleTableEditorUi(objects[0], existingWhereClause, quotes);
default:
DbTranFilters filters = structure.getHierarchicalFilters();
return new MultipleTableEditorUi(objects, filters);