}
});
_allowEditing = new EditableSqlCheck(exInfo).allowsEditing();
final SessionProperties props = _session.getProperties();
if (_allowEditing)
{
_resultSetOutput = BaseDataSetViewerDestination.getInstance(props.getSQLResultsOutputClassName(), _creator);
}
else
{
// sql contains columns from multiple tables,
// so we cannot use all of the columns in a WHERE clause
// and it becomes difficult to know which table (or tables!) an
// edited column belongs to. Therefore limit the output
// to be read-only
_resultSetOutput = BaseDataSetViewerDestination.getInstance(
props.getReadOnlySQLResultsOutputClassName(), null);
}
_resultSetSp.setViewportView(_resultSetOutput.getComponent());
_resultSetSp.setRowHeader(null);
if (_session.getProperties().getShowResultsMetaData())
{
_metaDataOutput = BaseDataSetViewerDestination.getInstance(props.getMetaDataOutputClassName(), null);
_metaDataSp.setViewportView(_metaDataOutput.getComponent());
_metaDataSp.setRowHeader(null);
}
}