pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1825165 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action: PDActionLaunch.java PDActionRemoteGoTo.java
Date Fri, 23 Feb 2018 19:41:12 GMT
Author: tilman
Date: Fri Feb 23 19:41:12 2018
New Revision: 1825165

URL: http://svn.apache.org/viewvc?rev=1825165&view=rev
Log:
PDFBOX-4071: use constant

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionLaunch.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionRemoteGoTo.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionLaunch.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionLaunch.java?rev=1825165&r1=1825164&r2=1825165&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionLaunch.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionLaunch.java
Fri Feb 23 19:41:12 2018
@@ -218,7 +218,7 @@ public class PDActionLaunch extends PDAc
      */
     public boolean shouldOpenInNewWindow()
     {
-        return action.getBoolean( "NewWindow", true );
+        return action.getBoolean(COSName.NEW_WINDOW, true);
     }
 
     /**
@@ -228,6 +228,6 @@ public class PDActionLaunch extends PDAc
      */
     public void setOpenInNewWindow( boolean value )
     {
-        action.setBoolean( "NewWindow", value );
+        action.setBoolean(COSName.NEW_WINDOW, value);
     }
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionRemoteGoTo.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionRemoteGoTo.java?rev=1825165&r1=1825164&r2=1825165&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionRemoteGoTo.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionRemoteGoTo.java
Fri Feb 23 19:41:12 2018
@@ -119,7 +119,7 @@ public class PDActionRemoteGoTo extends
      */
     public boolean shouldOpenInNewWindow()
     {
-        return action.getBoolean( "NewWindow", true );
+        return action.getBoolean(COSName.NEW_WINDOW, true );
     }
 
     /**
@@ -129,6 +129,6 @@ public class PDActionRemoteGoTo extends
      */
     public void setOpenInNewWindow( boolean value )
     {
-        action.setBoolean( "NewWindow", value );
+        action.setBoolean(COSName.NEW_WINDOW, value );
     }
 }



Mime
View raw message