return dataFactory instanceof SQLReportDataFactory;
}
public DataFactory performEdit(final DesignTimeContext context, final DataFactory input, String queryName)
{
final JdbcDataSourceDialog editor;
final Window window = context.getParentWindow();
if (window instanceof JDialog)
{
editor = new JdbcDataSourceDialog(context, (JDialog) window);
}
else if (window instanceof JFrame)
{
editor = new JdbcDataSourceDialog(context, (JFrame) window);
}
else
{
editor = new JdbcDataSourceDialog(context);
}
return editor.performConfiguration((SQLReportDataFactory) input, queryName);
}