Merge remote-tracking branch 'origin/GP-1-dragonmacher-escape-window-fix'

This commit is contained in:
Ryan Kurtz
2025-03-07 15:29:27 -05:00

View File

@@ -92,6 +92,7 @@ public class CodeBrowserSelectionPlugin extends Plugin {
.helpLocation(new HelpLocation(HelpTopics.SELECTION, "Clear Selection"))
.withContext(CodeViewerActionContext.class, true)
.inWindow(ActionBuilder.When.CONTEXT_MATCHES)
.enabledWhen(c -> c.hasSelection())
.onAction(c -> ((CodeViewerProvider) c.getComponentProvider())
.setSelection(new ProgramSelection()))
.buildAndInstall(tool);