|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.core; import org.openide.modules.ModuleDescription; /** This class contains all method and interfaces needed for support of * autoupdate module * * @author Petr Hrebejk * @deprecated Should not be used, here only as a stub */ public class UpdateSupport extends Object { static { System.err.println("WARNING: use of deprecated class org.netbeans.core.UpdateSupport"); // NOI18N System.err.println("Upgrade your autoupdate module or it will not work fully"); // NOI18N //Thread.dumpStack(); } private static IDESettings ideSettings = (IDESettings) IDESettings.findObject(IDESettings.class, true); /** This class is a singleton */ private UpdateSupport() { } /** Retruns array of module descriptions of installed modules * @deprecated returns nothing */ public static ModuleDescription[] getModuleDescriptions() { return new ModuleDescription[0]; } /** Restarts the IDE in order to run the Updater programm * @deprecated Use {@link LifeCycleManager#exit} instead */ public static void restart() { org.openide.LifecycleManager.getDefault().exit(); } /** Installs the automatic update checker (Implemented in autoupdate module ) * @deprecated Does nothing */ public static void installUpdateChecker( UpdateChecker uc ) { } /** Innerclass for UpdateChecker checks automatiacially for new * updates * @deprecated */ public static interface UpdateChecker { /** Performs the automatic check for new updates */ public void check(); } /** Gets proxy usage */ public static boolean isUseProxy() { return ideSettings.getUseProxy(); } /** Gets Proxy Host */ public static String getProxyHost() { return ideSettings.getProxyHost(); } /** Gets Proxy Port */ public static String getProxyPort() { return ideSettings.getProxyPort(); } /** Sets the whole proxy configuration */ public static void setProxyConfiguration( boolean use, String host, String port ) { ideSettings.setUseProxy( use ); ideSettings.setProxyHost( host ); ideSettings.setProxyPort( port ); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.