mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
nosplash shouldn't prevent from plugin update
This commit is contained in:
@@ -24,11 +24,13 @@ import java.lang.reflect.Method;
|
||||
*/
|
||||
public class Bootstrap {
|
||||
private static final String PLUGIN_MANAGER = "com.intellij.ide.plugins.PluginManager";
|
||||
public static final String NO_SPLASH = "nosplash";
|
||||
|
||||
private Bootstrap() { }
|
||||
|
||||
public static void main(String[] args, String mainClass, String methodName) throws Exception {
|
||||
UrlClassLoader newClassLoader = BootstrapClassLoaderUtil.initClassLoader(args.length == 0);
|
||||
UrlClassLoader newClassLoader = BootstrapClassLoaderUtil.initClassLoader(args.length == 0 || args.length == 1 &&
|
||||
NO_SPLASH.equals(args[0]));
|
||||
|
||||
WindowsCommandLineProcessor.ourMirrorClass = Class.forName(WindowsCommandLineProcessor.class.getName(), true, newClassLoader);
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.idea;
|
||||
|
||||
import com.intellij.ide.Bootstrap;
|
||||
import com.intellij.openapi.application.ApplicationInfo;
|
||||
import com.intellij.openapi.application.ApplicationNamesInfo;
|
||||
import com.intellij.openapi.application.ConfigImportHelper;
|
||||
@@ -45,7 +46,7 @@ import java.util.List;
|
||||
* @author yole
|
||||
*/
|
||||
public class StartupUtil {
|
||||
@NonNls public static final String NO_SPLASH = "nosplash";
|
||||
@NonNls public static final String NO_SPLASH = Bootstrap.NO_SPLASH;
|
||||
|
||||
private static SocketLock ourLock;
|
||||
private static String myDefaultLAF;
|
||||
|
||||
Reference in New Issue
Block a user