use of com.cubrid.cubridmanager.ui.host.dialog.ImportConfigDialog in project cubrid-manager by CUBRID.
the class EditConfigEditor method doImport.
/**
* Perform the import based upon the given ConfigType.
*
* @param configType the ConfigType
*/
protected void doImport(ConfigType configType) {
IEditorInput input = this.getEditorInput();
if (!(input instanceof ConfEditInput)) {
return;
}
ImportConfigDialog dialog = new ImportConfigDialog(this.getSite().getShell(), configType, true);
if (defaultImportFileName != null && !"".equals(defaultImportFileName)) {
dialog.setDefaultFileName(defaultImportFileName);
}
if (defaultImportFileCharset != null && !"".equals(defaultImportFileCharset)) {
dialog.setDefaultCharset(defaultImportFileCharset);
}
if (dialog.open() == Dialog.OK) {
defaultImportFileName = dialog.getDefaultFileName();
defaultImportFileCharset = dialog.getDefaultCharset();
contents = dialog.getImportFileContent();
createContent();
}
}
Aggregations