Skip to content

Commit

Permalink
text for FileDeleteAction, otherwise, it doesn't appear in the popup …
Browse files Browse the repository at this point in the history
…menu
  • Loading branch information
dkandalov committed Dec 11, 2022
1 parent a3f6ede commit 63705a4
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ import com.intellij.util.EditSourceOnEnterKeyHandler
import com.intellij.util.ui.tree.TreeUtil
import liveplugin.implementation.LivePluginPaths.livePluginsPath
import liveplugin.implementation.actions.*
import liveplugin.implementation.actions.AddGroovyExamplesActionGroup
import liveplugin.implementation.actions.AddKotlinExamplesActionGroup
import liveplugin.implementation.actions.AddNewGroovyPluginAction
import liveplugin.implementation.actions.AddNewKotlinPluginAction
import liveplugin.implementation.actions.gist.AddPluginFromGistAction
import liveplugin.implementation.actions.git.AddPluginFromGitHubDelegateAction
import liveplugin.implementation.actions.git.SharePluginAsGistDelegateAction
Expand Down Expand Up @@ -194,7 +190,10 @@ private class PluginToolWindow(project: Project) {
livePluginNewElementPopup,
RunLivePluginsGroup(),
RenameFileAction().also { it.registerCustomShortcutSet(CustomShortcutSet(*shortcutsOf("RenameElement")), this) },
FileDeleteAction().also { it.registerCustomShortcutSet(CustomShortcutSet(*shortcutsOf("SafeDelete")), this) },
FileDeleteAction().also {
it.templatePresentation.text = "Delete"
it.registerCustomShortcutSet(CustomShortcutSet(*shortcutsOf("SafeDelete")), this)
},
).also { it.isPopup = true }

installPopupHandler(this, popupActionGroup)
Expand Down

0 comments on commit 63705a4

Please sign in to comment.