use of org.springsource.ide.eclipse.commons.frameworks.core.legacyconversion.LegacyWorkspaceConverter in project eclipse-integration-commons by spring-projects.
the class LegacySTSChecker method earlyStartup.
/**
* This entry to the checker comes at the startup of the workbench
*/
public void earlyStartup() {
PREFERENCE_STORE.setDefault(AUTO_CHECK_FOR_LEGACY_STS_PROJECTS, true);
if (shouldPerformProjectCheck()) {
Job job = new LegacyProjectsJob(false);
job.schedule();
ResourcesPlugin.getWorkspace().addResourceChangeListener(LegacyProjectListener.LISTENER, IResourceChangeEvent.POST_CHANGE);
}
if (shouldPerformWorkspaceMigration()) {
new // $NON-NLS-1$
UIJob(// $NON-NLS-1$
"Convert legacy STS 2.x preferences") {
@Override
public IStatus runInUIThread(IProgressMonitor monitor) {
IStatus status = new LegacyWorkspaceConverter().convert(monitor);
IStatus status2 = new PerspectiveMigrator().migratePerspective(GRAILS_OLD_PERSPECTIVE_ID, GRAILS_NEW_PERSPECTIVE_ID, monitor);
MultiStatus statuses = new MultiStatus(FrameworkUIActivator.PLUGIN_ID, 0, new IStatus[] { status, status2 }, "Legacy workspace migration", null);
return statuses;
}
}.schedule();
}
}
Aggregations