Examples of PluginManagerUtil


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

  private final static boolean useDevelopmentPath = false;
 
  private final static String developmentPath = "/Users/steffen/Documents/workspace/ORKAFileManImportPlugin/bin";

  public static List<IPlugin> getPluginList(PluginType inType) {
    PluginManagerUtil pmu = initialize(inType);
    Collection<IPlugin> plugins = pmu.getPlugins(IPlugin.class);
    return new ArrayList<IPlugin>(plugins);
  }
View Full Code Here

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

    Collection<IPlugin> plugins = pmu.getPlugins(IPlugin.class);
    return new ArrayList<IPlugin>(plugins);
  }

  public static IPlugin getPluginByTitle(PluginType inType, String inTitle) {
    PluginManagerUtil pmu = initialize(inType);
    Collection<IPlugin> plugins = pmu.getPlugins(inType.getInterfaz());
    for (IPlugin p : plugins) {
      if (p.getTitle().equals(inTitle)) {
        return p;
      }
    }
View Full Code Here

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

 


  @Deprecated
  public static IPlugin getPlugin(PluginType inType, String inTitle) {
    PluginManagerUtil pmu = initialize(inType);
    Collection<IPlugin> plugins = pmu.getPlugins(inType.getInterfaz());
    for (IPlugin p : plugins) {
      if (p.getTitle().equals(inTitle)) {
        return p;
      }
    }
View Full Code Here

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

    // switch here to development path for development of special plugin
    if (useDevelopmentPath){
      path = developmentPath;
    }
    pm.addPluginsFrom(new File(path).toURI());
    return new PluginManagerUtil(pm);
  }
View Full Code Here

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

    */
   static protected void _s_assignNameFileToPlugin(
           PluginManager pm,
           File fleSource) throws Exception
   {
      PluginManagerUtil pmu = new PluginManagerUtil(pm);
     
      Collection<IGfrHandlerPlugin> col = pmu.getPlugins(IGfrHandlerPlugin.class);
     
      if (col==null || col.isEmpty())
      {
         //pmu.shutdown();
         String strException = "col==null || col.isEmpty(), fleSource=" + fleSource.getAbsolutePath();
View Full Code Here

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

      intIndexEnd --; // "."
      String strNameTarget = strNameSource.substring(0, intIndexEnd);
      File fleTmp = GfrUtilFile.s_createTempFile(strNameTarget, "." + strExtensionSuffix);
      GfrUtilFile.s_copy(fleSource, fleTmp);
     
      PluginManagerUtil pul = super.addPluginsFrom(fleTmp.toURI());
      // end trick
      Collection<IGfrHandlerPlugin> colNext = super.getPlugins(IGfrHandlerPlugin.class);
     
      if (colNext.size() != colPrev.size()+1)
      {
View Full Code Here

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

        // TODO: Is getClass().getClassLoader() okay? ... at least the applet seems to need it,
        // but will other apps have problems otherwise?
        this.classPathLocator = new ClassPathLocator(this.jarCache);
        this.classPathManager = new ClassPathManager();

        this.pluginManagerUtil = new PluginManagerUtil(this);
        this.spawner = new Spawner(this);

        this.configuration = new PluginConfigurationImpl(initialProperties);
        this.pluginSupervisor = new PluginSupervisorImpl();
View Full Code Here

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

    xs.processAnnotations(TransparentIF.class);
    xs.processAnnotations(PingMethod.class);
    xs.processAnnotations(IsReachable.class);
    xs.processAnnotations(NativePing.class);
    xs.processAnnotations(OpenSocket.class);
    for (Plugin p : new PluginManagerUtil(Controller.pm).getPlugins(Plugin.class)) {
      try {
        xs.processAnnotations(p.getClass());
      } catch (Exception e) {
        Logger.warn("Unable to process xs-annotations for" + p.getPluginName());
      }
View Full Code Here

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

  public PopupGraphMousePlugin(Frame owner, Factory<Device> vertexFactory) {
    this.owner = owner;
    this.vertexFactory = vertexFactory;
    plugins = new JMenu(Lang.get("preferences.plugins"));
      plugins.setIcon(Icons.get("plugin"));
    for (final RightClickAction p : new PluginManagerUtil(Controller.pm).getPlugins(RightClickAction.class)) {
      plugins.add(new AbstractAction(p.getPluginName(), p.getIcon()) {
        @Override
        public void actionPerformed(ActionEvent e) {
          try {
            Scheduler.execute(new Runnable() {
View Full Code Here

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

      InfoPanel info = new InfoPanel(this);
        mapPanel.addGraphListener(info);
        addSideTab(Lang.get("infopanel.title"), Icons.get("info"), info, Lang.get("infopanel.tooltip"));
      addSideTab(Lang.get("menu.edit"), Icons.get("cursor_edit"), new EditPanel(this), "");
    // load plugin sidebar tabs
    for (SidebarPlugin p : new PluginManagerUtil(Controller.pm).getPlugins(SidebarPlugin.class)) {
      try {
        addSideTab(p.getTabTitle(), p.getIcon(), p.getPanel(), p.getToolTip());
        mapPanel.addGraphListener(p);
      } catch (Exception e) {
        Logger.error("Unable to load plugin " + p, e);
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.