modules/jdk.packager/src/antplugin/java/com/sun/javafx/tools/ant/Preferences.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -53,10 +53,11 @@
     private boolean installRequested = false;
     private Boolean shortcutRequested = null;
     private Boolean menuRequested = null;
     private Boolean systemWide = null;
     private Boolean installdirChooserRequested = null;
+    private Boolean singletonRequested = null;
 
     Boolean getSystemInstall() {
         return systemWide;
     }
 

@@ -104,10 +105,14 @@
      */
     public void setInstalldirChooser(Boolean b) {
         installdirChooserRequested = b;
     }
 
+    public void setSingleton(Boolean b) {
+        singletonRequested = b;
+    }
+
     private Preferences get() {
         if (isReference()) {
             return (Preferences) getRefid().getReferencedObject();
         }
         return this;

@@ -126,6 +131,10 @@
     }
 
     Boolean getInstalldirChooser() {
         return get().installdirChooserRequested;
     }
+    
+    Boolean getSingleton() {
+        return get().singletonRequested;
+    }
 }