<BUG>db.connect();RowMetaInterface r = db.getTableFields(this.model.getTable().getName());String sql = db.getCreateTableStatement(this.model.getTable().getName(), r, null, false, null, true);SQLEditor se = new SQLEditor(this.dbExplorerDialog.getShell(), SWT.NONE, this.model.getDatabaseMeta(), this.dbcache, sql);</BUG><CONTEXT>if(model.getTable() == null) {return;}Database db = new Database(null, this.model.getDatabaseMeta());try {<extra_id_0>se.open();</CONTEXT>
String tableName = getSchemaAndTable(this.model);RowMetaInterface r = db.getTableFields(tableName);String sql = db.getCreateTableStatement(tableName, r, null, false, null, true);SQLEditor se = new SQLEditor(this.dbExplorerDialog.getShell(), SWT.NONE, this.model.getDatabaseMeta(), this.dbcache, sql);