Examples of PluginMetadata


Examples of org.jboss.forge.shell.command.PluginMetadata

                  printPlugin(out, p, all);
               }
            }
            else
            {
               PluginMetadata p = registry.getPluginMetadataForScopeAndConstraints(plugin, shell);
               if (p == null)
               {
                  p = list.get(0);
               }
               printPlugin(out, p, all);
            }
         }

         if (!Strings.isNullOrEmpty(command))
         {
            PluginMetadata p = registry.getPluginMetadataForScopeAndConstraints(plugin, shell);
            if (p == null)
            {
               p = list.get(0);
            }

            out.println();
            if (p.hasCommand(command, shell))
            {
               CommandMetadata c = p.getCommand(command);
               out.print(ShellColor.BOLD, "[" + p.getName() + " " + c.getName() + "] ");
               out.println("- "
                        + (!Strings.isNullOrEmpty(c.getHelp()) ? c.getHelp() : out.renderColor(ShellColor.ITALIC,
                                 NO_HELP)));

               printOptions(out, c);
View Full Code Here

Examples of org.jboss.forge.shell.command.PluginMetadata

      Queue<String> tokens = state.getTokens();

      if (!tokens.isEmpty())
      {
         String pluginName = tokens.remove();
         PluginMetadata plugin = registry.getPluginMetadataForScopeAndConstraints(pluginName, shell);

         if ((plugin != null))
         {
            // found a plugin match directly
            state.setPlugin(plugin);
View Full Code Here

Examples of org.sonar.api.platform.PluginMetadata

    }
    return new URLClassLoader(urls);
  }

  private PluginMetadata newPlugin(String key) {
    PluginMetadata plugin = mock(PluginMetadata.class);
    when(plugin.getKey()).thenReturn(key);
    return 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.