mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Gradle: apply option to store project files externally after the change in existing project
This commit is contained in:
@@ -20,6 +20,7 @@ import com.intellij.openapi.components.ServiceManager;
|
||||
import com.intellij.openapi.components.State;
|
||||
import com.intellij.openapi.components.Storage;
|
||||
import com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsManager;
|
||||
import com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsManagerImpl;
|
||||
import com.intellij.openapi.externalSystem.settings.AbstractExternalSystemSettings;
|
||||
import com.intellij.openapi.externalSystem.settings.ExternalSystemSettingsListener;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -128,6 +129,9 @@ public class GradleSettings extends AbstractExternalSystemSettings<GradleSetting
|
||||
if (old.isResolveModulePerSourceSet() != current.isResolveModulePerSourceSet()) {
|
||||
ExternalProjectsManager.getInstance(getProject()).getExternalProjectsWatcher().markDirty(current.getExternalProjectPath());
|
||||
}
|
||||
if (old.isStoreProjectFilesExternally() != current.isStoreProjectFilesExternally()) {
|
||||
ExternalProjectsManagerImpl.getInstance(getProject()).setStoreExternally(current.isStoreProjectFilesExternally());
|
||||
}
|
||||
}
|
||||
|
||||
public static class MyState implements State<GradleProjectSettings> {
|
||||
|
||||
Reference in New Issue
Block a user