Examples of ModuleResourcePlugin


Examples of net.sf.pipet.resources.ModuleResourcePlugin

  public static ModuleDefinition defineNewModule(Configuration cfg, Messenger reporter)
  {
    List<PluginItem> plugins = new Vector<PluginItem>();
    for (String name : cfg.getModuleResourcePlugins().keySet())
    {
      ModuleResourcePlugin plugin = cfg.getModuleResourcePlugin(name);
      if (plugin.supportsInteractiveModuleSelection())
        plugins.add(new PluginItem(name,plugin));
    }
   
    PluginItem selected = (PluginItem)JOptionPane.showInputDialog(null,
      "What kind of module do you want to load?",
View Full Code Here

Examples of net.sf.pipet.resources.ModuleResourcePlugin

  {
    try
    {
      Class<?> cls = loader.loadClass(classname);
     
      ModuleResourcePlugin plugin = (ModuleResourcePlugin)cls.newInstance();

      plugin.setResourceLoader(res);
     
      return plugin;
    }
    catch (java.lang.NoClassDefFoundError e)
    {
View Full Code Here

Examples of net.sf.pipet.resources.ModuleResourcePlugin

    if (sep == -1)
      throw new InvalidConfigurationException("Invalid URI: "+uri);
   
    String pluginname = uri.substring(0, sep);
   
    ModuleResourcePlugin plugin = cfg.getModuleResourcePlugin(pluginname);
    if (plugin == null)
      throw new InvalidConfigurationException("No scheme available for loading module: "+uri);
   
    String modspec = uri.substring(sep+1);
    return plugin.getModuleInterface(modspec, cfg);
  }
View Full Code Here

Examples of net.sf.pipet.resources.ModuleResourcePlugin

    {
      Element elem = (Element)nodes.item(i);
      String name = elem.getAttribute("name");
      String uri = elem.getAttribute("uri");
     
      ModuleResourcePlugin plugin = ModuleLoader.loadModuleResourcePlugin(uri, cfg.getResourceLoader());
      cfg.addModuleResourcePlugin(name, uri, plugin);
    }
  }
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.