mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Rename method to the name which more correctly reflects its functionality
This commit is contained in:
@@ -94,7 +94,7 @@ public class WizardContext {
|
||||
if (myProjectFileDirectory != null) {
|
||||
return myProjectFileDirectory;
|
||||
}
|
||||
final String lastProjectLocation = GeneralSettings.getInstance().getLastProjectLocation();
|
||||
final String lastProjectLocation = GeneralSettings.getInstance().getLastProjectCreationLocation();
|
||||
if (lastProjectLocation != null) {
|
||||
return lastProjectLocation.replace('/', File.separatorChar);
|
||||
}
|
||||
|
||||
@@ -129,11 +129,11 @@ public class GeneralSettings implements NamedJDOMExternalizable, ExportableAppli
|
||||
/**
|
||||
* @return a path pointing to a directory where the last project was created or null if not available
|
||||
*/
|
||||
public String getLastProjectLocation() {
|
||||
public String getLastProjectCreationLocation() {
|
||||
return myLastProjectLocation;
|
||||
}
|
||||
|
||||
public void setLastProjectLocation(String lastProjectLocation) {
|
||||
public void setLastProjectCreationLocation(String lastProjectLocation) {
|
||||
myLastProjectLocation = lastProjectLocation;
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ public class ProjectUtil {
|
||||
LOG.info(e);
|
||||
return;
|
||||
}
|
||||
GeneralSettings.getInstance().setLastProjectLocation(path.replace(File.separatorChar, '/'));
|
||||
GeneralSettings.getInstance().setLastProjectCreationLocation(path.replace(File.separatorChar, '/'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -279,7 +279,7 @@ public class ProjectUtil {
|
||||
}
|
||||
|
||||
public static String getBaseDir() {
|
||||
final String lastProjectLocation = GeneralSettings.getInstance().getLastProjectLocation();
|
||||
final String lastProjectLocation = GeneralSettings.getInstance().getLastProjectCreationLocation();
|
||||
if (lastProjectLocation != null) {
|
||||
return lastProjectLocation.replace('/', File.separatorChar);
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ public class NewDirectoryProjectAction extends AnAction implements DumbAware {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
GeneralSettings.getInstance().setLastProjectLocation(location.getParent());
|
||||
GeneralSettings.getInstance().setLastProjectCreationLocation(location.getParent());
|
||||
final Object finalSettings = settings;
|
||||
return PlatformProjectOpenProcessor.doOpenProject(baseDir, null, false, -1, new ProjectOpenedCallback() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user