mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-121419 - IAE: TagFileQuickFixProvider.createTagFileReferenceQuickFix
This commit is contained in:
@@ -54,11 +54,13 @@ public class CreateFileFix extends LocalQuickFixAndIntentionActionOnPsiElement {
|
||||
private long myIsAvailableTimeStamp;
|
||||
private static final int REFRESH_INTERVAL = 1000;
|
||||
|
||||
protected CreateFileFix(boolean isDirectory,
|
||||
@NotNull String newFileName,
|
||||
@NotNull PsiDirectory directory,
|
||||
@Nullable String text,
|
||||
@NotNull String key) {
|
||||
// invoked from other module
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
public CreateFileFix(boolean isDirectory,
|
||||
@NotNull String newFileName,
|
||||
@NotNull PsiDirectory directory,
|
||||
@Nullable String text,
|
||||
@NotNull String key) {
|
||||
super(directory);
|
||||
|
||||
myIsDirectory = isDirectory;
|
||||
@@ -143,7 +145,7 @@ public class CreateFileFix extends LocalQuickFixAndIntentionActionOnPsiElement {
|
||||
String newFileName = myNewFileName;
|
||||
String newDirectories = null;
|
||||
if (myNewFileName.contains("/")) {
|
||||
int pos = myNewFileName.lastIndexOf("/");
|
||||
int pos = myNewFileName.lastIndexOf('/');
|
||||
newFileName = myNewFileName.substring(pos + 1);
|
||||
newDirectories = myNewFileName.substring(0, pos);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user