Package com.intellij.ide.plugins

Examples of com.intellij.ide.plugins.IdeaPluginDescriptor


      boolean runInTest = settings.getNmeTarget() == NMETarget.ANDROID || settings.getNmeTarget() == NMETarget.IOS;
      return runHXCPP(project, module, env, executor, contentToReuse, runInTest);
    }
    // flash only

    final IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId("com.intellij.flex"));
    if (plugin == null) {
      throw new ExecutionException(HaxeBundle.message("install.flex.plugin"));
    }
    if (!plugin.isEnabled()) {
      throw new ExecutionException(HaxeBundle.message("enable.flex.plugin"));
    }

    String flexSdkName = settings.getFlexSdkName();
    if (StringUtil.isEmpty(flexSdkName)) {
View Full Code Here


public class ApplicationComponent implements com.intellij.openapi.components.ApplicationComponent {

  @Override
  public void initComponent() {
    IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId("org.mayevskiy.intellij.sonar"));
    if (plugin != null && plugin.isEnabled()) {
      registerExternalAnnotatorForAllLanguages(plugin);
    }
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void checkSupported() throws ImplNotSupportedException
  {
    IdeaPluginDescriptor xPathViewPlugin = PluginManager.getPlugin(PluginId.getId("XPathView"));
    if (xPathViewPlugin == null)
    {
      throw new ImplNotSupportedException("XPathView plugin is required");
    }
  }
View Full Code Here

  }

  protected File getPluginFolder() {
    IdeaPluginDescriptor[] plugins = PluginManager.getPlugins();
    for (int i = 0; i < plugins.length; i++) {
      IdeaPluginDescriptor plugin = plugins[i];
      if (plugin.getName().equals(Constants.PLUGIN_ID)) {
        return plugin.getPath();
      }
    }
    return null;
  }
View Full Code Here

        //installing a component programmatically

        ComponentConfig config = new ComponentConfig();

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

        config.interfaceClass = PlatformDependentTools.class.getName();
        if (SystemInfo.isLinux) {
            config.implementationClass = LinuxSpecificTools.class.getName();
        } else if (SystemInfo.isWindows) {
View Full Code Here

    {
        if (!CssXFireConnector.getInstance().isInitialized())
        {
            return;
        }
        IdeaPluginDescriptor pluginDescriptor = PluginManager.getPlugin(PluginId.getId("CSS-X-Fire"));
        if (pluginDescriptor == null)
        {
            return;
        }
        String currentVersion = pluginDescriptor.getVersion();
        AppMeta appMeta = CssXFireConnector.getInstance().getState();
        String previousVersion = appMeta.getVersion();
        if (!currentVersion.equals(previousVersion))
        {
            appMeta.setVersion(currentVersion);
View Full Code Here

        //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) {
View Full Code Here

    Throwable throwable = event.getThrowable();
    if (throwable != null) {
      final PluginId pluginId = IdeErrorsDialog.findPluginId(throwable);
      if (pluginId != null) {
        final IdeaPluginDescriptor ideaPluginDescriptor = PluginManager.getPlugin(pluginId);
        if (ideaPluginDescriptor != null && !ideaPluginDescriptor.isBundled()) {
          bean.setPluginName(ideaPluginDescriptor.getName());
          bean.setPluginVersion(ideaPluginDescriptor.getVersion());
        }
      }
    }

    Object data = event.getData();
View Full Code Here

        self = this;
    }

    public void initComponent() {
        ApplicationInfo instance = ApplicationInfo.getInstance();
        IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId("com.floobits.unique.plugin.id"));
        createAccount = Bootstrap.bootstrap(instance.getVersionName(), instance.getMajorVersion(), instance.getMinorVersion(), plugin != null ? plugin.getVersion() : "???");
    }
View Full Code Here

            db.commit();
        }
    }

    private File getDBFile() {
        IdeaPluginDescriptor descriptor = PluginManager.getPlugin(PluginId.getId("com.jetbrains.puzzlers"));
        String path = descriptor.getPath().getAbsolutePath() + File.separator;
        return new File(path + "classes" + File.separator + DB_NAME);
    }
View Full Code Here

TOP

Related Classes of com.intellij.ide.plugins.IdeaPluginDescriptor

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.