mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
OPENIDE #164 Show "Scratch File" in File menu when opened java class
(cherry picked from commitbb5d8b4561) (cherry picked from commitfcc58b4d16) (cherry picked from commit3b51e65b7b) (cherry picked from commitf2f9453248)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
//
|
||||
// Modified by Nikita Iarychenko at 2025 as part of the OpenIDE project(https://openide.ru).
|
||||
// Any modifications are available on the same license terms as the original source code.
|
||||
package com.intellij.ide.scratch;
|
||||
|
||||
import com.intellij.icons.AllIcons;
|
||||
@@ -104,7 +107,7 @@ public final class ScratchFileActions {
|
||||
return ourCurrentBuffer;
|
||||
}
|
||||
|
||||
static final class NewFileAction extends DumbAwareAction implements NewFileActionWithCategory {
|
||||
static final class NewFileAction extends DumbAwareAction {
|
||||
private static final String ACTION_ID = "NewScratchFile";
|
||||
|
||||
private final NotNullLazyValue<@Nls String> myActionText = NotNullLazyValue.lazy(() -> {
|
||||
@@ -224,10 +227,10 @@ public final class ScratchFileActions {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull String getCategory() {
|
||||
return "Scratch";
|
||||
}
|
||||
//@Override
|
||||
//public @NotNull String getCategory() {
|
||||
// return "Scratch";
|
||||
//}
|
||||
}
|
||||
|
||||
static final class NewBufferAction extends DumbAwareAction {
|
||||
|
||||
Reference in New Issue
Block a user