diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ClassViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ClassViewer.java index 490c98d11..7595390cc 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ClassViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ClassViewer.java @@ -130,11 +130,14 @@ public void refresh(JButton button) if (bytecodeViewPanel1.decompiler != Decompiler.NONE) bytecodeViewPanel1.updateThread.startNewThread(); + if (bytecodeViewPanel2.decompiler != Decompiler.NONE) bytecodeViewPanel2.updateThread.startNewThread(); + if (bytecodeViewPanel3.decompiler != Decompiler.NONE) bytecodeViewPanel3.updateThread.startNewThread(); }, "ClassViewer Temp Dump"); + dumpBuild.start(); if (isPanel1Editable() || isPanel2Editable() || isPanel3Editable()) @@ -195,9 +198,11 @@ public static void selectMethod(ClassViewer classViewer, int paneId, Method meth case 0: area = classViewer.bytecodeViewPanel1.updateThread.updateUpdaterTextArea; break; + case 1: area = classViewer.bytecodeViewPanel2.updateThread.updateUpdaterTextArea; break; + case 2: area = classViewer.bytecodeViewPanel3.updateThread.updateUpdaterTextArea; break; @@ -209,10 +214,9 @@ public static void selectMethod(ClassViewer classViewer, int paneId, Method meth if (methods != null) { int methodLine = methods.findMethod(method); + if (methodLine != -1) - { selectMethod(area, methodLine); - } } } } @@ -220,6 +224,7 @@ public static void selectMethod(ClassViewer classViewer, int paneId, Method meth public static int getMaxViewLine(RSyntaxTextArea area) { Container parent = area.getParent(); + if (parent instanceof JViewport) { JViewport viewport = (JViewport) parent; @@ -234,6 +239,7 @@ public static int getMaxViewLine(RSyntaxTextArea area) public static int getViewLine(RSyntaxTextArea area) { Container parent = area.getParent(); + if (parent instanceof JViewport) { JViewport viewport = (JViewport) parent; @@ -248,6 +254,7 @@ public static int getViewLine(RSyntaxTextArea area) public static void setViewLine(RSyntaxTextArea area, int line) { Container parent = area.getParent(); + if (parent instanceof JViewport) { JViewport viewport = (JViewport) parent; @@ -291,9 +298,7 @@ else if (bytecodeViewPanel2.decompiler != Decompiler.NONE) sp2.setResizeWeight(0.7); setDividerLocation(sp2, 0.7); if ((bytecodeViewPanel2.decompiler == Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) || (bytecodeViewPanel1.decompiler == Decompiler.NONE && bytecodeViewPanel2.decompiler != Decompiler.NONE)) - { setDividerLocation(sp2, 0.5); - } else if (bytecodeViewPanel1.decompiler == Decompiler.NONE) setDividerLocation(sp2, 0); } diff --git a/src/main/java/the/bytecode/club/uikit/tabpopup/ITabPopupEventListener.java b/src/main/java/the/bytecode/club/uikit/tabpopup/ITabPopupEventListener.java index bb7924855..ca85b646c 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/ITabPopupEventListener.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/ITabPopupEventListener.java @@ -27,5 +27,5 @@ public interface ITabPopupEventListener { * @param index, index of tab * @param e */ - public void onTabPopupEvent(JTabbedPane tabbedPane, int index, TabPopupEvent e); + void onTabPopupEvent(JTabbedPane tabbedPane, int index, TabPopupEvent e); } diff --git a/src/main/java/the/bytecode/club/uikit/tabpopup/ITabZeroComponentEventListener.java b/src/main/java/the/bytecode/club/uikit/tabpopup/ITabZeroComponentEventListener.java index 0a5020d10..added13db 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/ITabZeroComponentEventListener.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/ITabZeroComponentEventListener.java @@ -25,5 +25,5 @@ public interface ITabZeroComponentEventListener { * * @param tabbedPane */ - public void onTabZeroComponent(JTabbedPane tabbedPane); + void onTabZeroComponent(JTabbedPane tabbedPane); }