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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, 2015, 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 --- 1,7 ---- /* ! * 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,62 **** --- 53,63 ---- 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,113 **** --- 105,118 ---- */ 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,131 **** --- 131,140 ---- } Boolean getInstalldirChooser() { return get().installdirChooserRequested; } + + Boolean getSingleton() { + return get().singletonRequested; + } }