Examples of PluginManagerUtil


Examples of net.xeoh.plugins.base.util.PluginManagerUtil

  public PluginPanel() {
    setLayout(new BorderLayout());
    title = Lang.getNoHTML("preferences.plugins");
    pluginList = new JPanel();
    pluginList.setLayout(new BoxLayout(pluginList, BoxLayout.PAGE_AXIS));
    for (Plugin p : new PluginManagerUtil(Controller.pm).getPlugins(Plugin.class)) {
      pluginList.add(new PluginInfo(p));
      pluginList.add(new JSeparator());
    }
    pluginList.add(Box.createVerticalGlue());
    final PluginPanel _this = this;
View Full Code Here

Examples of net.xeoh.plugins.base.util.PluginManagerUtil

    if (rootNode.getChildCount() == 0) {
      addCard(new GeneralPanel((Window) parent));
      addCard(new AppearancePanel((Window) parent));
      addCard(new ToolBarPanel());
      addCard(new PluginPanel());
        for (Plugin p : new PluginManagerUtil(Controller.pm).getPlugins(Plugin.class)) {
          if (p.hasSettings()) {
            PreferencePanel panel = p.getSettingsPanel();
              panel.title = p.getPluginName();
              panel.parentTitle = Lang.getNoHTML("preferences.plugins");
            addCard(panel);
View Full Code Here

Examples of net.xeoh.plugins.base.util.PluginManagerUtil

      listWrapper.setBorder(BorderFactory.createTitledBorder(Lang.getNoHTML("map.notifiers")));
      final JList listenerList = new JList(new Vector<Notifier>(m.getStatusListeners()));
        listenerList.setCellRenderer(new IconListRenderer(true));
      JPanel addWrapper = new JPanel(new BorderLayout());
        final JComboBox addSelector = new JComboBox(new Vector<Notifier>() {{
          for (Notifier p : new PluginManagerUtil(Controller.pm).getPlugins(Notifier.class)) {
            try {
              add(p);
            } catch (Exception e) {
              Logger.error("Unable to load plugin " + p, e);
            }
View Full Code Here

Examples of net.xeoh.plugins.base.util.PluginManagerUtil

  public void createPluginManager(){
    this.pm = PluginManagerFactory.createPluginManager();
  }
  public void loadListeners(){
    this.pm.addPluginsFrom(new File("plugins/").toURI()); //$NON-NLS-1$
    this.event = new PluginManagerUtil(this.pm).getPlugins(EventInterface.class);
  }
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.