sLogger.debug("Invoked Enable Evolizer Action!");
IProject project = getProject(event);
Shell activeShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
EvolizerImporterWizard wizard = new EvolizerImporterWizard();
WizardDialog dialog = new WizardDialog(activeShell, wizard);
dialog.open();
if (!wizard.isCanceled()) {
// Store user input
try {
project.setPersistentProperty(EvolizerPreferences.DB_HOST, wizard.getHost());
project.setPersistentProperty(EvolizerPreferences.DB_NAME, wizard.getDatabaseName());
project.setPersistentProperty(EvolizerPreferences.DB_USER, wizard.getUsername());
project.setPersistentProperty(EvolizerPreferences.DB_PASSWORD, wizard.getPassword());
} catch (CoreException e) {
sLogger.error("Error while attachting database connection Info to selected project", e);
}
IStatus result = EvolizerNatureManager.applyEvolizerNature(project, new NullProgressMonitor());