}
public void show(TreePath treePath) {
int index = getIndex(treePath);
ClassMember classMember;
if (mode == FIELDS) {
FieldInfo[] fields = services.getClassFile().getFields();
if (index >= fields.length) {
return;
}
classMember = fields[index];
} else {
MethodInfo[] methods = services.getClassFile().getMethods();
if (index >= methods.length) {
return;
}
classMember = methods[index];
}
constantPoolHyperlink(lblName,
lblNameVerbose,
classMember.getNameIndex());
constantPoolHyperlink(lblDescriptor,
lblDescriptorVerbose,
classMember.getDescriptorIndex());
lblAccessFlags.setText(classMember.getFormattedAccessFlags());
lblAccessFlagsVerbose.setText("[" + classMember.getAccessFlagsVerbose() + "]");
super.show(treePath);
}