Conversation
skylot
left a comment
There was a problem hiding this comment.
Looks good, but I found some issues and request small improvements 🙂
jadx-gui/src/main/java/jadx/gui/ui/tab/QuickTabsBookmarkParentNode.java
Outdated
Show resolved
Hide resolved
|
One more thing. |
|
@skylot all ready |
|
Hm, not sure why we need to save index to restore order, is just saving/reading tabs list in correct order not working? |
But maybe we can just consider the order of TabbedPane to be the "default" order, ok I'll implement it by saving/reading tabs list in correct order |
|
OK, I think we can merge it now.
|
All noted. I'll open a new PR in the near future |
Unchecked tasks are WIP(*1) This change is a must. Previously,
TabbedPanewas the only class interacting with tabs. So it was fine that all the code that controls tabs was found there. However now, that we are addingQuickTabsTree, (and why not other components), it no longer makes sense thatQuickTabsTreeneeds to communicate withTabbedPanein order to manage the tabs. Counter example ? There may be tabs which are not open inTabbedPanebut are present inQuickTabsTree, like bookmarked tabs. So if we would keep using old code, we'd have to store inTabbedPanea seperate reference to tabs that are present but not open, which would transform the code into a mess. I hope you understood the point.Now TabsController hold a "generic reference" to each tab, and TabbedPane holds a "component reference".
Before
Now
Affected issues
Icons from https://intellij-icons.jetbrains.design