IProject project = getProject(event);
Shell activeShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
//Before I even open the wizard, I check that some history was already imported, otherwise I won't proceed.
EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
try {
IEvolizerSession persistenceProvider = handler.getCurrentSession(project);
Long res = persistenceProvider.uniqueResult("select count (*) from Release", Long.class);
if (res == null || res <= 0) {
MessageDialog.openError(activeShell, "Missing File Content Importer Error", "No history was imported yet.\nFile content cannot be imported if no history was imported beforehand.");
return null;
}