DatabaseFileInfo info = MssqlIntrospector.getDatabaseFileInfo(nodes[0].toString(), _session.getSQLConnection());
Object[] files = info.getDataFiles();
for (int i = 0; i < files.length; i++) {
DatabaseFile file = (DatabaseFile) files[i];
final ShrinkDatabaseFileAction shrinkDatabaseFileAction = new ShrinkDatabaseFileAction(app,_resources,plugin,nodes[0].toString(),file);
shrinkDatabaseFileAction.setSession(_session);
coll.add(shrinkDatabaseFileAction);
_resources.addToMenu(shrinkDatabaseFileAction,menu);
}
menu.addSeparator();
files = info.getLogFiles();
for (int i = 0; i < files.length; i++) {
DatabaseFile file = (DatabaseFile) files[i];
final ShrinkDatabaseFileAction shrinkDatabaseFileAction = new ShrinkDatabaseFileAction(app,_resources,plugin,nodes[0].toString(),file);
shrinkDatabaseFileAction.setSession(_session);
coll.add(shrinkDatabaseFileAction);
_resources.addToMenu(shrinkDatabaseFileAction,menu);
}
}
catch (java.sql.SQLException ex) {