Fixed Resource List Selection

This commit is contained in:
Konloch 2021-07-04 19:37:00 -07:00
parent d18062fa52
commit 8b82fdccf1
3 changed files with 5 additions and 8 deletions

View file

@ -124,7 +124,6 @@ public class ResourceViewProcessing extends PaneUpdaterThread
Thread.sleep(1);
} catch (Exception e) {}
}
}
}
}

View file

@ -179,6 +179,11 @@ public class WorkPaneMainComponent extends VisibleComponent
//create a new tab if the resource isn't opened currently
if (!openedTabs.contains(workingName))
{
if(resourceView instanceof ClassViewer)
{
((ClassViewer)resourceView).startPaneUpdater(null);
}
resourceView.workingName = workingName;
tabs.add(resourceView);

View file

@ -81,16 +81,9 @@ public class ClassViewer extends ResourceViewer
this.setLayout(new BorderLayout());
this.sp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, resourceViewPanel1.panel, resourceViewPanel2.panel);
final ClassWriter cw = new ClassWriter(0);
cn.accept(cw);
JHexEditor hex = new JHexEditor(cw.toByteArray());
this.sp2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, sp, resourceViewPanel3.panel);
this.add(sp2, BorderLayout.CENTER);
hex.setMaximumSize(new Dimension(0, Integer.MAX_VALUE));
hex.setSize(0, Integer.MAX_VALUE);
startPaneUpdater(null);
this.addComponentListener(new ComponentAdapter() {
@Override
public void componentResized(ComponentEvent e) {