}, "Creating Phonegap/Cordova project", false, project);
ApplicationManager.getApplication().runWriteAction(new Runnable() {
@Override
public void run() {
PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(project);
propertiesComponent.setValue(PhoneGapSettings.PHONEGAP_WORK_DIRECTORY, project.getBasePath());
PhoneGapSettings.State state = PhoneGapSettings.getInstance().getState();
if (!StringUtil.equals(settings.getExecutable(), state.getExecutablePath())) {
PhoneGapSettings.getInstance().loadState(new PhoneGapSettings.State(settings.executable, state.repositoriesList));
}
baseDir.refresh(false, true);