Skip to content

Console and Search views: use a distinct part name per view instance #3000

Description

@ravnskjaer

Let's make sure issue is not already fixed in latest builds first.

Suggestion

When several Console or Search views are open, their tabs all show the same name, so they can't be told apart:

Image

The screenshot shows multiple [Console / Search] views with identical tab names, next to Terminal and Problems views, which each handle this in their own way.

Proposal

Give each instance of ConsoleView and SearchView a distinct part name. There are two existing patterns to follow:

  1. Numbered names, as in the Terminal view. Derive the name from the IViewSite::getSecondaryId when one is present, in the same way TerminalsView::createPartControl does. This needs no user interaction.
  2. User-provided names, as in the Problems view. Ask the user for a name when an additional view is opened. This gives more meaningful names, at the cost of an extra step.

Related

Once eclipse-platform/eclipse.platform.ui#4459 is merged, the Ctrl+F7 view switcher will show whatever part name a view sets, so distinct names would make these views distinguishable there as well.

Community

  • I understand suggesting an enhancement doesn't mandate anyone to implement it. Other contributors may consider this suggestion, or not, at their own convenience. The most efficient way to get it fixed is that I implement it myself and contribute it back as a good quality patch to the project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions