Package com.intellij.openapi.components

Examples of com.intellij.openapi.components.ComponentConfig


    public PlatformDependentToolsInstaller() {

        //installing a component programmatically

        ComponentConfig config = new ComponentConfig();

        IdeaPluginDescriptor ideaPluginDescriptor = PluginManager.getPlugin(((PluginClassLoader)getClass().getClassLoader()).getPluginId());

        config.interfaceClass = PlatformDependentTools.class.getName();
        if (SystemInfo.isLinux) {
View Full Code Here


    public PlatformDependentToolsInstaller() {

        //installing a component programmatically

        ComponentConfig config = new ComponentConfig();

        IdeaPluginDescriptor ideaPluginDescriptor = PluginManager.getPlugin(((PluginClassLoader)getClass().getClassLoader()).getPluginId());

        config.setInterfaceClass(PlatformDependentTools.class.getName());
        if (SystemInfo.isLinux) {
            config.setImplementationClass(LinuxSpecificTools.class.getName());
        } else if (SystemInfo.isWindows) {
            config.setImplementationClass(WindowsSpecificTools.class.getName());
        } else if (SystemInfo.isMac) {
            config.setImplementationClass(LinuxSpecificTools.class.getName()); // looks like, it works
        } else {
            throw new RuntimeException("I really am sorry, but your operating system is not known to mankind."); // ;)
        }

        ((ComponentManagerEx) ApplicationManager.getApplication()).registerComponent(config, ideaPluginDescriptor);
View Full Code Here

TOP

Related Classes of com.intellij.openapi.components.ComponentConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.