Example #1
0
  /** @param aPlugins */
  private static void showInterfaces(PluginCollection aPlugins) {
    Trace.println(Trace.EXEC, "showInterfaces( aPlugins )", true);

    System.out.println("Supported interfaces:");
    SupportedInterfaceList interfaceList = aPlugins.getInterfaces();
    for (Enumeration<String> keys = interfaceList.getInterfaceNames(); keys.hasMoreElements(); ) {
      String ifaceName = keys.nextElement();
      System.out.println("  " + ifaceName);
    }
  }
Example #2
0
  /**
   * @param aTestium
   * @param anRtData
   * @throws Error
   */
  private static void showKeywords(PluginCollection aPlugins) {
    Trace.println(Trace.EXEC, "showKeywords( aPlugins )", true);

    System.out.println("Supported keywords:");
    SupportedInterfaceList interfaceList = aPlugins.getInterfaces();
    for (Enumeration<String> keys = interfaceList.getInterfaceNames(); keys.hasMoreElements(); ) {
      String ifaceName = keys.nextElement();
      System.out.println("  " + ifaceName);

      ArrayList<String> commandList = interfaceList.getInterface(ifaceName).getCommands();
      for (String command : commandList) {
        System.out.println("    " + command);
      }

      System.out.println();
    }
  }