Fixed Resource List Selection
This commit is contained in:
parent
d18062fa52
commit
8b82fdccf1
3 changed files with 5 additions and 8 deletions
|
@ -124,7 +124,6 @@ public class ResourceViewProcessing extends PaneUpdaterThread
|
|||
Thread.sleep(1);
|
||||
} catch (Exception e) {}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue