mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-152061 Ability to set default project location
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.intellij.ide.util.projectWizard;
|
||||
|
||||
import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.ide.RecentProjectsManager;
|
||||
import com.intellij.ide.wizard.AbstractWizard;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.application.ApplicationNamesInfo;
|
||||
@@ -118,10 +119,10 @@ public class WizardContext extends UserDataHolderBase {
|
||||
if (myProjectFileDirectory != null) {
|
||||
return myProjectFileDirectory;
|
||||
}
|
||||
//final String lastProjectLocation = RecentProjectsManager.getInstance().getLastProjectCreationLocation();
|
||||
//if (lastProjectLocation != null) {
|
||||
// return lastProjectLocation.replace('/', File.separatorChar);
|
||||
//}
|
||||
final String lastProjectLocation = RecentProjectsManager.getInstance().getLastProjectCreationLocation();
|
||||
if (lastProjectLocation != null) {
|
||||
return lastProjectLocation.replace('/', File.separatorChar);
|
||||
}
|
||||
final String userHome = SystemProperties.getUserHome();
|
||||
//noinspection HardCodedStringLiteral
|
||||
String productName = ApplicationNamesInfo.getInstance().getLowercaseProductName();
|
||||
|
||||
Reference in New Issue
Block a user