Package giggler

Examples of giggler.Plugin$Consumer


      PluginModule module = dependencyTree.getModule(name);
     
      if (module == null)
        return null;
     
        Plugin plugin = module.getPlugin();

        if (pluginInterface.isInstance(plugin))
            return (T) plugin;
       
        return null;
View Full Code Here


      PluginModule module = dependencyTree.getModule(name);
     
      if (module == null)
        return null;
     
      Plugin plugin = module.getPlugin();
     
        return plugin;
    }
View Full Code Here

        return (pluginView.isConfigurable() || pluginView.hasPresentation());
    }

    public void retired(Plugin plugin) {
       
        Plugin _plugin = null;
       
        for (String pluginId : idToPluginMap.keySet()) {
        
            _plugin = idToPluginMap.get(pluginId);
           
View Full Code Here

//        if (plugin == this)
//            return false;
       
        PluginView pluginView = new PluginView(plugin);
       
        Plugin storedPlugin = idToPluginMap.get(pluginView.getId());
       
        if (storedPlugin != plugin) {
           
            if (storedPlugin == null) {
               
                idToPluginMap.put(pluginView.getId(), plugin);
                idToViewMap.put(pluginView.getId(), pluginView);
               
                configurator.add(pluginView);
                trayMenu.add(pluginView);
               
            } else {
               
                throw new IllegalPluginException("plugin '"+plugin.getName()+"' registered as v"+plugin.getVersion()+" and v"+storedPlugin.getVersion());
            }
        }
       
        return (pluginView.isConfigurable() || pluginView.hasPresentation());
    }
View Full Code Here

TOP

Related Classes of giggler.Plugin$Consumer

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.