Skip to content

Find in Console button is missing when the Console has no other tabs #19784

Description

@gtritchie

When the Console pane has no other tabs (Terminal and Background Jobs closed), the Find in Console button isn't shown. With other tabs open, it appears in the Console toolbar to the left of Clear Console.

Steps to reproduce

  1. Close the Terminal and Background Jobs tabs, so Console is the only tab in its pane.
  2. Look at the right end of the Console pane's title bar.

Only Clear Console is shown. Find in Console is still in the page, but hidden.

Cause

In console-only mode, ConsoleTabPanel.java hides the Console's toolbar (consolePane_.setMainToolbarVisible(!consoleOnly), line 432). It then moves Clear Console, Interrupt, and Interrupt Profiler into the pane's title bar with setContextButton (lines 438–449), but not Find in Console. ConsolePane.java adds Find in Console to that toolbar (line 228), so hiding the toolbar hides the button too.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions