{
return;
}
final AbstractMDXDataFactory mdxDataFactory = (AbstractMDXDataFactory) dataFactory;
final CubeFileProvider cubeFileProvider = mdxDataFactory.getCubeFileProvider();
if (StringUtils.isEmpty(cubeFileProvider.getCubeConnectionName()) == false)
{
// there is a cube-name for it already. Must be a developer sample or a new report
return;
}
final ResourceManager mgr = DesignTimeUtil.getResourceManager(report);
final ResourceKey reportContentBase = report.getContentBase();
final String cubeName = calculateCubeNameFromProvider(mgr, reportContentBase, cubeFileProvider);
cubeFileProvider.setCubeConnectionName(cubeName);
}