Skip to content

Commit

Permalink
ExplorerMain.java: Include COS dictionary type value in display name.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjw committed Sep 22, 2010
1 parent 75b404c commit a214bdc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/org/crossref/pdf2xml/ExplorerMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ private static void addCOSBase(DefaultMutableTreeNode root, COSBase base) {

} else if (base instanceof COSDictionary) {
COSDictionary dict = (COSDictionary) base;
DefaultMutableTreeNode nestedTn = new DefaultMutableTreeNode("#Dict");

// Look for a Type key, add it to the display name of the dict.
final String typeStr = dict.getNameAsString("Type");
final String nodeName = "#Dict" + (typeStr == null ? "" : (" " + typeStr));
DefaultMutableTreeNode nestedTn = new DefaultMutableTreeNode(nodeName);

for (java.util.Map.Entry<COSName, COSBase> e : dict.entrySet()) {
String keyName = e.getKey().getName();
Expand Down

0 comments on commit a214bdc

Please sign in to comment.