pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1684901 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/ui/Tree.java
Date Thu, 11 Jun 2015 14:24:11 GMT
Author: tilman
Date: Thu Jun 11 14:24:11 2015
New Revision: 1684901

URL: http://svn.apache.org/r1684901
Log:
PDFBOX-2576, PDFBOX-2530: remove reference to PDFDebugger and use awt base class instead;
call to default constructor is implicit

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/ui/Tree.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/ui/Tree.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/ui/Tree.java?rev=1684901&r1=1684900&r2=1684901&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/ui/Tree.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/ui/Tree.java Thu
Jun 11 14:24:11 2015
@@ -17,6 +17,7 @@
 
 package org.apache.pdfbox.tools.pdfdebugger.ui;
 
+import java.awt.Component;
 import java.awt.Point;
 import java.awt.Toolkit;
 import java.awt.datatransfer.Clipboard;
@@ -37,7 +38,6 @@ import org.apache.pdfbox.cos.COSName;
 import org.apache.pdfbox.cos.COSStream;
 import org.apache.pdfbox.io.IOUtils;
 import org.apache.pdfbox.pdmodel.common.PDStream;
-import org.apache.pdfbox.tools.PDFDebugger;
 import org.apache.pdfbox.tools.gui.ArrayEntry;
 import org.apache.pdfbox.tools.gui.MapEntry;
 import org.apache.pdfbox.tools.pdfdebugger.treestatus.TreeStatus;
@@ -51,16 +51,15 @@ import org.apache.pdfbox.tools.util.File
 public class Tree extends JTree
 {
     private final JPopupMenu treePopupMenu;
-    private final PDFDebugger parent;
+    private final Component parent;
     private final Object rootNode;
 
     /**
      * Constructor.
      * @param parentComponent the main UI where the Tree resides.
      */
-    public Tree(PDFDebugger parentComponent)
+    public Tree(Component parentComponent)
     {
-        super();
         treePopupMenu = new JPopupMenu();
         setComponentPopupMenu(treePopupMenu);
         parent = parentComponent;



Mime
View raw message