From 10c692dce1d4482a3309f1ac15a26d4e4105c2c8 Mon Sep 17 00:00:00 2001 From: BoykoAlex Date: Wed, 12 Jan 2022 18:29:17 -0500 Subject: [PATCH] Switch starter import to WorkspaceJob to avoid autobuilds until the end --- .../ide/eclipse/boot/wizard/NewSpringBootWizard.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eclipse-extensions/org.springframework.ide.eclipse.boot.wizard/src/org/springframework/ide/eclipse/boot/wizard/NewSpringBootWizard.java b/eclipse-extensions/org.springframework.ide.eclipse.boot.wizard/src/org/springframework/ide/eclipse/boot/wizard/NewSpringBootWizard.java index 1b77e87f3..f3fb562ca 100644 --- a/eclipse-extensions/org.springframework.ide.eclipse.boot.wizard/src/org/springframework/ide/eclipse/boot/wizard/NewSpringBootWizard.java +++ b/eclipse-extensions/org.springframework.ide.eclipse.boot.wizard/src/org/springframework/ide/eclipse/boot/wizard/NewSpringBootWizard.java @@ -13,6 +13,7 @@ package org.springframework.ide.eclipse.boot.wizard; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.resources.WorkspaceJob; import org.eclipse.core.runtime.Assert; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; @@ -219,9 +220,9 @@ public class NewSpringBootWizard extends Wizard implements INewWizard, IImportWi return false; } model.getModel().getValue().setWorkingSets(workingSetSection.getWorkingSets()); //must be in ui thread. Don't put in job! - Job job = new Job("Import Getting Started Content") { + WorkspaceJob job = new WorkspaceJob("Import Getting Started Content") { @Override - protected IStatus run(IProgressMonitor mon) { + public IStatus runInWorkspace(IProgressMonitor mon) { try { // TODO: maybe the model factory should have a perform finish that does a save, which then calls the underlying model perform finish model.save();