void () { super.updateStep(); myNamePathComponent.setPath(FileUtil.toSystemDependentName(myWizardContext.getProjectFileDirectory())); String name = myWizardContext.getProjectName(); if (name == null) { List<String> components = StringUtil.split(FileUtil.toSystemIndependentName(myWizardContext.getProjectFileDirectory()), "/"); if (!components.isEmpty()) { name = components.get(components.size()-1); } } myNamePathComponent.setNameValue(name); if (name != null) { myNamePathComponent.getNameComponent().setSelectionStart(0); myNamePathComponent.getNameComponent().setSelectionEnd(name.length()); } }