use of com.cubrid.cubridmanager.core.cubrid.database.model.DbUnloadInfo in project cubrid-manager by CUBRID.
the class LoadDatabaseDialog method initial.
/**
*
* Initial data
*
*/
private void initial() {
IDialogSettings dialogSettings = CubridManagerUIPlugin.getPluginDialogSettings();
filteredFilePath = dialogSettings.get(KEY_LOAD_SCHEMA_FILE + database.getId());
if (filteredFilePath == null || filteredFilePath.trim().length() == 0) {
filteredFilePath = database.getDatabaseInfo().getDbDir();
}
databaseNameText.setText(database.getLabel());
userNameText.setText(database.getUserName());
dbDir = database.getDatabaseInfo().getDbDir();
if (dbUnloadInfoList == null || dbUnloadInfoList.isEmpty()) {
selectLoadFileFromListButton.setSelection(false);
databaseCombo.setEnabled(false);
selectUnloadFileFromSysButton.setSelection(true);
} else {
int index = 0;
for (int i = 0; i < dbUnloadInfoList.size(); i++) {
DbUnloadInfo dbUnloadInfo = dbUnloadInfoList.get(i);
databaseCombo.add(dbUnloadInfo.getDbName());
if (dbUnloadInfo.getDbName().equals(database.getLabel())) {
index = i;
}
}
databaseCombo.select(index);
setTableModel(databaseCombo.getText());
selectUnloadFileFromSysButton.setSelection(false);
selectLoadFileFromListButton.setSelection(true);
setBtnStatusInList(true);
setBtnStatusInSys(false);
}
}
Aggregations