Show source jar file for the currently opened class tab

Aperta
#1,045 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java
Ambito
desktop

Direzione di ricerca

Inizia cercando la scheda attiva tramite DockContainerLeaf#getSelectedDockable() e segui la relativa classe attraverso la catena dei parent PathNode tramite NavigationManager fino al ResourcePathNode più vicino. Determina quale superficie UI espone meglio il jar o file contenitore, comprese le risorse annidate; il lavoro è completato quando la scheda della classe attiva identifica chiaramente la relativa origine in workspace con più jar e jar incorporati.

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

Descrizione

enhancement

Is your feature request related to a problem? Please describe.
When a workspace has multiple loaded jars (either as the primary resource, or as embedded resources inside a supporting directory resource), there's no straightforward way in the UI to tell which jar file a given open tab's
class actually came from. This becomes especially painful with workspaces containing a lot of jars.

Currently the only way I found to get this info was writing a custom script that walks the PathNode parent chain via NavigationManager to find the nearest ResourcePathNode, and cross-references the active tab via DockContainerLeaf#getSelectedDockable().

Describe the solution you'd like
Surface the source resource directly in the UI for the currently open/active tab, for example:

  • Show the containing jar/file name in the tab's tooltip
  • Show it in a status bar at the bottom of the window
  • Add a "Reveal in tree" / "Locate resource" context menu action on the tab, which expands the workspace tree to the resource that contains the class

Describe alternatives you've considered
Manually switching between resources in the workspace tree dropdown and searching for the class visually — not practical with a large number of jars.

Additional context
Happy to test this against a workspace with a lot of jars if useful for verifying the fix works with deeply nested/mbedded resources (directory resource containing multiple jar resources).

Lingua principale
Java
Stelle
7.5k
Fork
549
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 Col-E/Recaf

Tutte le issue di Col-E/Recaf

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.