Package com.intellij.ide.plugins

Examples of com.intellij.ide.plugins.IdeaPluginDescriptor


    Throwable t = ideaLoggingEvent.getThrowable();
    if (t != null) {
      final PluginId pluginId = IdeErrorsDialog.findPluginId(t);
      if (pluginId != null) {
        final IdeaPluginDescriptor ideaPluginDescriptor = PluginManager.getPlugin(pluginId);
        if (ideaPluginDescriptor != null && !ideaPluginDescriptor.isBundled()) {
          descBuilder.append("Plugin ").append(ideaPluginDescriptor.getName()).append(" version: ").append
              (ideaPluginDescriptor.getVersion()).append("\n");
          this.myAffectedVersion = ideaPluginDescriptor.getVersion();
        }
      }
    }

    if (description == null) {
View Full Code Here


        requestTrackerPageLinkLabel.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent e) {
                BrowserUtil.launchBrowser("http://dci.myjetbrains.com/youtrack/issues");
            }
        });
        IdeaPluginDescriptor ideaPluginDescriptor = PluginManager.getPlugin(PluginId.getId("DBN"));
        String version = ideaPluginDescriptor.getVersion();
        buildLabel.setText("Build: " + version.substring(version.lastIndexOf(".") + 1));
    }
View Full Code Here

        System.out.println();
    }

    @Override
    public IdeaPluginDescriptor getPluginDescriptor() {
        IdeaPluginDescriptor pluginDescriptor = (IdeaPluginDescriptor) super.getPluginDescriptor();
        if (pluginDescriptor == null) {
            pluginDescriptor = PluginManager.getPlugin(PluginId.getId(DatabaseNavigator.DBN_PLUGIN_ID));
            setPluginDescriptor(pluginDescriptor);
        }
        return pluginDescriptor;
View Full Code Here

  }


  @Override
  public void initComponent() {
    final IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId(FindBugsPluginConstants.PLUGIN_NAME));
    if (plugin == null) {
      return;
    }
    final File jar = new File(plugin.getPath(), FindBugsPluginConstants.FINDBUGS_WEBCLOUD_CLIENT_JAR);
    if (jar.exists() && jar.canRead()) {
      System.setProperty(FindBugsPluginConstants.FINDBUGS_APP_ENGINE_PROPERTY_NAME, jar.toURI().toString());
    } else {
      LOGGER.info(FindBugsPluginConstants.FINDBUGS_APP_ENGINE_PROPERTY_NAME + " jar not found." + jar.toURI());
    }
View Full Code Here

  }


  @SuppressWarnings({"NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"})
  public void initComponent() {
    final IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId(FindBugsPluginConstants.PLUGIN_NAME));
    //noinspection ConstantConditions
    LOGGER.debug("initComponent: " + plugin.getName() + " project="  + getProject());
  }
View Full Code Here

  }


  @SuppressWarnings({"NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"})
  public void disposeComponent() {
    final IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId(FindBugsPluginConstants.PLUGIN_NAME));
    //noinspection ConstantConditions
    LOGGER.debug("disposeComponent: " + plugin.getName() + " project="  + getProject());
  }
View Full Code Here

  }


  @SuppressWarnings({"NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"})
  public void projectOpened() {
    final IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId(FindBugsPluginConstants.PLUGIN_NAME));
    //noinspection ConstantConditions
    LOGGER.debug("project is opened: " + plugin.getName() + " project="  + getProject());
    initToolWindow();
    setActionGroupsIcon();
    registerToolbarActions();
    final AnalyzeChangelistFiles action = (AnalyzeChangelistFiles) ActionManager.getInstance().getAction(FindBugsPluginConstants.ACTIVE_CHANGELIST_ACTION);
    ChangeListManager.getInstance(_project).removeChangeListListener(action.getChangelistAdapter());
View Full Code Here

  }


  @SuppressWarnings({"NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"})
  public void projectClosed() {
    final IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId(FindBugsPluginConstants.PLUGIN_NAME));
    //noinspection ConstantConditions
    LOGGER.debug("project is being closed: " + plugin.getName() + " project="  + getProject());
    EventManagerImpl.getInstance().removeEventListener(_project);
    final AnalyzeChangelistFiles action = (AnalyzeChangelistFiles) ActionManager.getInstance().getAction(FindBugsPluginConstants.ACTIVE_CHANGELIST_ACTION);
    ChangeListManager.getInstance(_project).removeChangeListListener(action.getChangelistAdapter());
    unregisterToolWindow();
    disableToolbarActions();
View Full Code Here

  private FindBugsPluginUtil() {
  }


  public static IdeaPluginDescriptor getIdeaPluginDescriptor() {
    final IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId(FindBugsPluginConstants.PLUGIN_NAME));
    if (plugin == null) {
      throw new IllegalStateException(FindBugsPluginConstants.PLUGIN_NAME + " could not be instantiated! PluginManager returned null!");
    }
    return plugin;
  }
View Full Code Here

  public static boolean clojureIsOnClassPath() {
    return IdeUtil.isOnClasspath("clojure.core.Vec");
  }

  @Override public void initComponent() {
    IdeaPluginDescriptor pluginDescriptor = PluginManager.getPlugin(getId("IntelliJEval"));
    if (pluginDescriptor != null && pluginDescriptor.isEnabled()) {
      NotificationGroup.balloonGroup("Live Plugin").createNotification(
          "It seems that you have IntelliJEval plugin enabled.<br/>Please disable it to use LivePlugin.",
          NotificationType.ERROR
      ).notify(null);
      return;
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.