pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1691476 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java
Date Fri, 17 Jul 2015 01:45:15 GMT
Author: jahewson
Date: Fri Jul 17 01:45:15 2015
New Revision: 1691476

URL: http://svn.apache.org/r1691476
Log:
PDFBOX-2530: Move zoom to View menu

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java?rev=1691476&r1=1691475&r2=1691476&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java Fri Jul 17 01:45:15
2015
@@ -344,6 +344,7 @@ public class PDFDebugger extends javax.s
         zoomMenu.add(zoom50Item);
         zoomMenu.add(zoom100Item);
         zoomMenu.add(zoom200Item);
+        viewMenu.add(zoomMenu);
 
         setJMenuBar(menuBar);
 
@@ -476,12 +477,12 @@ public class PDFDebugger extends javax.s
                 
                 if (isPage(selectedNode))
                 {
-                    menuBar.add(zoomMenu);
+                    zoomMenu.setEnabled(true);
                     SwingUtilities.updateComponentTreeUI(menuBar);
                     showPage(selectedNode);
                     return;
                 }
-                menuBar.remove(zoomMenu);
+                zoomMenu.setEnabled(false);
                 SwingUtilities.updateComponentTreeUI(menuBar);
                 
                 if (isSpecialColorSpace(selectedNode) || isOtherColorSpace(selectedNode))



Mime
View raw message