Package org.rhq.core.clientapi.descriptor.plugin

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


        }
        return pluginDescriptor.getAmpsVersion();
    }

    private String getHelp(PluginDescriptor pluginDescriptor) {
        Help help = pluginDescriptor.getHelp();
        if (help == null || help.getContent().isEmpty()) {
            return null;
        }
        return help.getContent().get(0).toString();
    }
View Full Code Here


    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

        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

        );
    }

    @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

TOP

Related Classes of org.rhq.core.clientapi.descriptor.plugin.Help

Copyright © 2018 www.massapicom. 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.