Examples of enablePlugin()


Examples of com.gitblit.manager.IGitblit.enablePlugin()

      PluginWrapper pluginWrapper = getPlugin(id);
      if (pluginWrapper == null) {
        throw new UnloggedFailure("Invalid plugin specified!");
      }

      if (gitblit.enablePlugin(pluginWrapper.getPluginId())) {
        stdout.println(String.format("Enabled %s", pluginWrapper.getPluginId()));
      } else {
        throw new UnloggedFailure(1, String.format("Failed to enable %s", pluginWrapper.getPluginId()));
      }
    }
View Full Code Here

Examples of org.bukkit.plugin.PluginManager.enablePlugin()

          return null;
        }
     
      // make sure it is enabled
      if (!pm.isPluginEnabled(worldEditPlugin))
        pm.enablePlugin(worldEditPlugin);

      // woot!
      generator.reportMessage("[PasteProvider] Found WorldEdit v" + worldEditPlugin.getDescription().getVersion() + ", enabling its schematics");
     
      return new PasteProvider_WorldEdit(generator);
View Full Code Here

Examples of org.bukkit.plugin.PluginManager.enablePlugin()

        }
        @Override
        public void reload() {
            PluginManager pluginManager = getServer().getPluginManager();
            pluginManager.disablePlugin(DynmapPlugin.this);
            pluginManager.enablePlugin(DynmapPlugin.this);
        }
        @Override
        public DynmapPlayer getPlayer(String name) {
            Player p = getServer().getPlayerExact(name);
            if(p != null) {
View Full Code Here

Examples of org.java.plugin.PluginManager.enablePlugin()

    for (Iterator<Extension> it = point.getConnectedExtensions().iterator(); it.hasNext();) {

      Extension ext = it.next();
      PluginDescriptor descr = ext.getDeclaringPluginDescriptor();
      try {
        pluginManager.enablePlugin(descr, true);
        pluginManager.activatePlugin(descr.getId());
        ClassLoader classLoader = pluginManager.getPluginClassLoader(descr);
        loadPluginClass(ext.getParameter("class").valueAsString(), classLoader);
      } catch (PluginLifecycleException e) {
        throw new OsmosisRuntimeException("Cannot load JPF-plugin '" + ext.getId()
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.