Show source jar file for the currently opened class tab

Đang mở
#1,045 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
desktop

Hướng nghiên cứu

Bắt đầu bằng việc tra cứu tab đang hoạt động thông qua DockContainerLeaf#getSelectedDockable() và lần theo lớp của nó qua chuỗi parent PathNode bằng NavigationManager đến ResourcePathNode gần nhất. Xác định bề mặt UI nào hiển thị tốt nhất jar hoặc tệp chứa nó, bao gồm cả các tài nguyên lồng nhau; được xem là hoàn tất khi tab của lớp đang hoạt động xác định rõ nguồn của nó trong các workspace có nhiều jar và jar được nhúng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
Java
Star
7.5k
Fork
549
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Col-E/Recaf

Tất cả issue của Col-E/Recaf

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.