Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#3,000 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
desktop

Direzione di ricerca

Start with ConsoleView and SearchView, and compare how TerminalsView::createPartControl derives a name from IViewSite::getSecondaryId. The issue offers two options (secondary-id numbering or asking the user for a name, as the Problems view does) and does not choose one, so settle that with maintainers first. Done means each open instance of these views gets a distinct part name.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

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 https://github.com/eclipse-platform/eclipse.platform.ui/pull/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.
Lingua principale
Java
Stelle
165
Fork
174
Merge medio
2g 16h
PR unite (30g)
45

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-platform/eclipse.platform

Tutte le issue di eclipse-platform/eclipse.platform

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.