Package org.eclipse.sapphire.services

Examples of org.eclipse.sapphire.services.DocumentationService


    {
        String title = null;
        final StringBuilder content = new StringBuilder();
        final List<DocumentationService.Topic> topics = new ArrayList<DocumentationService.Topic>();
       
        DocumentationService propDocService = null;
       
        if(property != null)
        {
          propDocService = element.property( property ).service( DocumentationService.class );
        }
       
        final DocumentationService elDocService = element.service( DocumentationService.class );
       
        content.append( "[br/]" );
       
        if( propDocService == null )
        {
            if( elDocService != null )
            {
                title = element.type().getLabel( true, CapitalizationType.TITLE_STYLE, false );
                content.append( elDocService.content() );
                topics.addAll( elDocService.topics() );
            }
        }
        else
        {
            title = property.getLabel( true, CapitalizationType.TITLE_STYLE, false );
            content.append( propDocService.content() );
            topics.addAll( propDocService.topics() );
           
            if( elDocService != null )
            {
                content.append( "[pbr/][b]" );
                content.append( element.type().getLabel( true, CapitalizationType.TITLE_STYLE, false ) );
                content.append( "[/b][pbr/]" );
                content.append( elDocService.content() );
                topics.addAll( elDocService.topics() );
            }
        }
       
        content.append( "[pbr/]" );
       
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.services.DocumentationService

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.