mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
allow to override ProjectSettingsStepBase.findSequentNonExistingUntitled
This commit is contained in:
+3
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -299,7 +299,8 @@ public class ProjectSettingsStepBase extends AbstractActionWithPanel implements
|
||||
return LabeledComponent.create(myLocationField, BundleBase.replaceMnemonicAmpersand("&Location"), BorderLayout.WEST);
|
||||
}
|
||||
|
||||
private static File findSequentNonExistingUntitled() {
|
||||
@NotNull
|
||||
protected File findSequentNonExistingUntitled() {
|
||||
return FileUtil.findSequentNonexistentFile(new File(ProjectUtil.getBaseDir()), "untitled", "");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -625,6 +625,7 @@ public class FileUtil extends FileUtilRt {
|
||||
return findSequentNonexistentFile(aParentFolder, aFilePrefix, aExtension).getName();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static File findSequentNonexistentFile(@NotNull File parentFolder, @NotNull String filePrefix, @NotNull String extension) {
|
||||
int postfix = 0;
|
||||
String ext = extension.isEmpty() ? "" : '.' + extension;
|
||||
|
||||
Reference in New Issue
Block a user