Search in sources :

Example 1 with CodeArea

use of jadx.gui.ui.codearea.CodeArea in project jadx by skylot.

the class RenameDialog method refreshTabs.

private void refreshTabs(TabbedPane tabbedPane, Set<JClass> updatedClasses) {
    for (Map.Entry<JNode, ContentPanel> entry : tabbedPane.getOpenTabs().entrySet()) {
        JClass rootClass = entry.getKey().getRootClass();
        if (updatedClasses.remove(rootClass)) {
            ClassCodeContentPanel contentPanel = (ClassCodeContentPanel) entry.getValue();
            CodeArea codeArea = (CodeArea) contentPanel.getJavaCodePanel().getCodeArea();
            codeArea.refreshClass();
        }
    }
}
Also used : JClass(jadx.gui.treemodel.JClass) JNode(jadx.gui.treemodel.JNode) Map(java.util.Map) ClassCodeContentPanel(jadx.gui.ui.codearea.ClassCodeContentPanel) ClassCodeContentPanel(jadx.gui.ui.codearea.ClassCodeContentPanel) ContentPanel(jadx.gui.ui.panel.ContentPanel) CodeArea(jadx.gui.ui.codearea.CodeArea)

Aggregations

JClass (jadx.gui.treemodel.JClass)1 JNode (jadx.gui.treemodel.JNode)1 ClassCodeContentPanel (jadx.gui.ui.codearea.ClassCodeContentPanel)1 CodeArea (jadx.gui.ui.codearea.CodeArea)1 ContentPanel (jadx.gui.ui.panel.ContentPanel)1 Map (java.util.Map)1