Examples of PluginId


Examples of com.intellij.openapi.extensions.PluginId

    descBuilder.append("Platform Version: ").append(platformBuild).append('\n');

    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");
View Full Code Here

Examples of com.intellij.openapi.extensions.PluginId


  @SuppressWarnings("UnusedDeclaration")
  @Nullable
  public static String getPluginId() {
    final PluginId pluginId = PluginManager.getPluginByClassName(FindBugsPluginImpl.class.getName()); // use PluginManager here for IDEA 12.1.x compatibility (PluginManagerCore extension was introduced with 13.x)
    if (pluginId != null) {
      return pluginId.getIdString();
    }
    return null;
  }
View Full Code Here

Examples of com.intellij.openapi.extensions.PluginId

    bean.setDescription(description);
    bean.setMessage(event.getMessage());

    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());
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginID

    }
  }
 

  private void handleAddDependency() {
    PluginID id = new PluginID();
    id.setUniqueName(EMPTY_PLUGIN_UNAME);
    id.setVersion(new Version(EMPTY_PLUGIN_VERSION));
    _pluginDependenciesModel.add(id);
  }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginID

        }
       
        ContainerInfo info = _containerInfos.remove(db.getDbReference());
        if (info != null) {
            WGAPlugin plugin = null;
            PluginID pluginID = (PluginID) db.getAttribute(WGACore.DBATTRIB_PLUGIN_ID);
            if (pluginID != null) {
                plugin = _core.getPluginSet().getPluginByID(pluginID);
            }
           
            SystemContainerContext scContext = new SystemContainerContext(db, info, plugin, false);
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginID

    public void checkDependencies() {
       
        Iterator depsIt = _config.getCsConfig().getPluginConfig().getDependencies().iterator();
        while (depsIt.hasNext()) {
            PluginID depId = (PluginID) depsIt.next();
            WGAPlugin depPlugin = (WGAPlugin) _parent.getActivePluginsByUniqueName().get(depId.getUniqueName());
            if (depPlugin == null) {
                addInstallationFault(new DependencyFault(depId, DependencyFault.ERROR_DEPENDENCY_NOT_AVAILABLE));
                continue;
            }
           
            int versionCompare = depId.getVersion().compareTo(depPlugin.getPluginID().getVersion());
            if (versionCompare > 0) {
                addInstallationFault(new DependencyFault(depId, DependencyFault.ERROR_DEPENDENCY_WRONG_VERSION));
                continue;
            }
           
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginID

            return true;
        }
       
        Iterator dependencies = depPlugin.getCsConfig().getPluginConfig().getDependencies().iterator();
        while (dependencies.hasNext()) {
            PluginID id = (PluginID) dependencies.next();
            WGAPlugin plugin = getParent().getPluginByID(id);
            if (plugin != null && detectCircularReference(plugin)) {
                return true;
            }
        }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginID

    }
   

   
    public WGAPlugin getPluginByID(String idString) {
        return getPluginByID(new PluginID(idString));
    }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginID

    }

    public String getValueTitle(String value, Locale locale) {
       
        WGDatabase db = _core.getContentdbs().get(value);
        PluginID pid = (PluginID) db.getAttribute(WGACore.DBATTRIB_PLUGIN_ID);
        if (pid != null) {
            WGAPlugin plugin = _core.getPluginSet().getPluginByID(pid);
            if (plugin != null) {
                return "Plugin " + db.getTitle() + " (" + (plugin.getInstallationKey() + ")");
            }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginID

        }
               
        try {
            WGAPluginSet pluginSet = _core.getPluginSet();
            // create plugin id from info
            PluginID id = new PluginID();
            id.setUniqueName(pluginInfo.getUniqueName());
            id.setVersion(toConfigVersionBean(pluginInfo.getVersion()));
            WGAPlugin plugin = pluginSet.getPluginByID(id);
            if (plugin != null) {
                if (!plugin.isActive()) {
                    List<WorkspaceOperation> ops = new ArrayList<WorkspaceOperation>();
                    ops.add(new ActivatePluginOperation(id, WGAPluginSet.UPDATESTRATEGY_UPDATE_KEEP_DATA));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.