1 7 8 package org.gjt.jclasslib.browser.detail.attributes; 9 10 import org.gjt.jclasslib.browser.BrowserServices; 11 import org.gjt.jclasslib.browser.detail.FixedListDetailPane; 12 import org.gjt.jclasslib.structures.attributes.SourceFileAttribute; 13 import org.gjt.jclasslib.util.ExtendedJLabel; 14 15 import javax.swing.tree.TreePath ; 16 17 23 public class SourceFileAttributeDetailPane extends FixedListDetailPane { 24 25 27 private ExtendedJLabel lblSourceFile; 28 private ExtendedJLabel lblSourceFileVerbose; 29 30 34 public SourceFileAttributeDetailPane(BrowserServices services) { 35 super(services); 36 } 37 38 protected void setupLabels() { 39 40 addDetailPaneEntry(normalLabel("Source file name index:"), 41 lblSourceFile = linkLabel(), 42 lblSourceFileVerbose = highlightLabel()); 43 } 44 45 public void show(TreePath treePath) { 46 47 SourceFileAttribute attribute = (SourceFileAttribute)findAttribute(treePath); 48 49 constantPoolHyperlink(lblSourceFile, 50 lblSourceFileVerbose, 51 attribute.getSourcefileIndex()); 52 53 super.show(treePath); 54 } 55 56 } 57 58 | Popular Tags |