Examples of Help


Examples of org.rhq.core.clientapi.descriptor.plugin.Help

    private Plugin createPlugin() {
        Plugin plugin = new Plugin(this.pluginDescriptor.getName(), null);
        plugin.setDisplayName(this.pluginDescriptor.getDisplayName());
        plugin.setDescription(this.pluginDescriptor.getDescription());
        plugin.setVersion(this.pluginDescriptor.getVersion());
        Help help = this.pluginDescriptor.getHelp();
        if ((help != null) && !help.getContent().isEmpty()) {
            plugin.setHelpContentType(help.getContentType());
            plugin.setHelp(String.valueOf(help.getContent().get(0)));
        }
        return plugin;
    }
View Full Code Here

Examples of org.rhq.core.clientapi.descriptor.plugin.Help

        for (ContentDescriptor contentDescriptor : resourceDescriptor.getContent()) {
            resourceType.addPackageType(ContentMetadataParser.parseContentDescriptor(contentDescriptor));
        }

        Help help = resourceDescriptor.getHelp();
        if ((help != null) && !help.getContent().isEmpty()) {
            resourceType.setHelpTextContentType(help.getContentType());
            resourceType.setHelpText(String.valueOf(help.getContent().get(0)));
        }

        allTypes.put(resourceType, resourceType);

        // The type is built, register it
View Full Code Here

Examples of org.rhq.core.clientapi.descriptor.plugin.Help

        );
    }

    @Test
    public void pluginHelpShouldBeSetToDescriptorHelp() throws Exception {
        Help help = new Help();
        help.getContent().add("help");

        PluginDescriptor pluginDescriptor = new PluginDescriptor();
        pluginDescriptor.setHelp(help);

        PluginTransformer transformer = new PluginTransformer();
View Full Code Here

Examples of wzhybridbots.tools.command.Help

  protected void registerBotCommands () {
    // Get the command manager
    CommandManager cmdMgr = CommandManager.getInstance();

    // Register the !help command
    this.objHelpCmd = new Help( this.objConnection );
    cmdMgr.registerCommand( "!help", this.objHelpCmd );
  }
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.