Examples of IPluginTypeData


Examples of org.jamesii.core.plugins.IPluginTypeData

  @Override
  public Icon getIcon(final Dimension dim) {

    // backup: if no icon is given try to use the icon of the plug-in type
    if (data.getId().getIconURI() == null) {
      IPluginTypeData ptdata = SimSystem.getRegistry().getPluginType(data);
      if (ptdata != null) {
        return getIcon(dim, ptdata.getId().getIconURI());
      }

    }

    return getIcon(dim, data.getId().getIconURI());
View Full Code Here

Examples of org.jamesii.core.plugins.IPluginTypeData

      for (Class<? extends Factory<?>> c : factories) {
        Class<? extends AbstractFactory<?>> af =
            registry.getAbstractFactoryForBaseFactory(c);

        if (af != null) {
          IPluginTypeData ptd = registry.getPluginType(af);

          if (namePTDmapping.containsKey(ptd.getId().getName())) {
            continue;
          }

          namePTDmapping.put(ptd.getId().getName(), ptd);

          DefaultMutableTreeNode node;
          root.add(node =
              new DefaultMutableTreeNode(String.format(
                  "<html><b>%s</b> <i>(%s)</i></html>", ptd.getId().getName(),
                  ptd.getDescription())));

          List<IPluginData> plugins = registry.getPlugins(af);

          if (plugins != null && plugins.size() > 0) {
            for (IPluginData pd : plugins) {
View Full Code Here

Examples of org.jamesii.core.plugins.IPluginTypeData

        if (pdata.getId().getIconURI() != null) {
          return getIcon(dim, pdata.getId().getIconURI());
        }

        // backup: if no icon is given try to use the icon of the plug-in type
        IPluginTypeData ptdata = SimSystem.getRegistry().getPluginType(pdata);
        if (ptdata != null) {
          return getIcon(dim, ptdata.getId().getIconURI());
        }

      }

    }
View Full Code Here

Examples of org.jamesii.core.plugins.IPluginTypeData

    // load factory parameters
    IFactoryInfo factoryInfo = SimSystem.getRegistry().getFactoryInfo(f);
    List<IParameter> fParams = new ArrayList<>(factoryInfo.getParameters());

    IPluginTypeData pluginType =
        SimSystem.getRegistry().getPluginType(
            SimSystem.getRegistry().getPlugin(factoryInfo));

    fParams.addAll(pluginType.getParameters());

    if (fParams == null || fParams.size() == 0) {
      return null;
    }
View Full Code Here

Examples of org.jamesii.core.plugins.IPluginTypeData

            }

            // read the XML type file and add a found plug-in to the
            // internal list
            // of plug-in types found
            IPluginTypeData data =
                reader.readPluginTypeXMLFile(source, directory + " --- " + s);
            if (data != null) {
              foundPluginTypes.add(data);
            }
View Full Code Here

Examples of org.jamesii.core.plugins.IPluginTypeData

        try {
          InputStream xmlInput = archive.getInputStream(curEntry);
          InputSource source = new InputSource(xmlInput);

          IPluginTypeData data = reader.readPluginTypeXMLFile(source, fileName);
          if (data != null) {
            foundPluginTypes.add(data);
          }

          // if (readXMLTypeFile(source)) {
View Full Code Here

Examples of org.jamesii.core.plugins.IPluginTypeData

    for (Class<? extends Factory<?>> c : registry.getKnownFactoryClasses()) {
      Class<? extends AbstractFactory<?>> af =
          registry.getAbstractFactoryForBaseFactory(c);
      if (af != null) {
        IPluginTypeData ptd = registry.getPluginType(af);
        // namePTDmapping.put(ptd.getIds().getName(), ptd);
        pluginCombo.addItem(ptd.getId().getName());
      } else {
        pluginCombo.addItem("Error! No AbstractFactory found for " + c);
      }

    }
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.