Rename method to the name which more correctly reflects its functionality

This commit is contained in:
Kirill Likhodedov
2012-12-17 15:27:58 +04:00
parent 373abace4d
commit 1fd834904a
4 changed files with 6 additions and 6 deletions
@@ -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