Package org.eclipse.ui.internal.intro.impl.model

Examples of org.eclipse.ui.internal.intro.impl.model.IntroText


            IntroLink link = (IntroLink) element;
            c = createImageHyperlink(parent, link);
            updateLayoutData(c, element);
            break;
        case AbstractIntroElement.TEXT:
            IntroText text = (IntroText) element;
            c = createText(parent, text);
            updateLayoutData(c, element);
            break;
        case AbstractIntroElement.IMAGE:
            IntroImage image = (IntroImage) element;
            c = createImage(parent, image);
            if (c!=null)
              updateLayoutData(c, element);
            break;
        case AbstractIntroElement.HTML:
            IntroHTML html = (IntroHTML) element;
            if (html.isInlined()) {
                IntroText htmlText = html.getIntroText();
                if (htmlText != null)
                    c = createText(parent, htmlText);
                else {
                    IntroImage htmlImage = html.getIntroImage();
                    if (htmlImage != null)
View Full Code Here


            }
        }

        if (providerClass == null) {
            // we failed to create a provider class, create the embedded text.
            IntroText text = provider.getIntroText();
            if (text != null)
                createText(container, text);
        }
        return container;
    }
View Full Code Here

      HTMLElement label = generateSpanElement(IIntroHTMLConstants.SPAN_CLASS_LINK_LABEL,
          indentLevel + 1);
      label.addContent(element.getLabel());
      anchor.addContent(label);
    }
    IntroText linkText = element.getIntroText();
    if (linkText != null && linkText.getText() != null) {
      HTMLElement text = generateIntroElement(linkText, indentLevel + 1);
      if (text != null)
        anchor.addContent(text);
    }
    return anchor;
View Full Code Here

      divElement.addContent(stringWriter.toString());
      pw.close();
    } else {
      // we couldn't load the content provider, so add any alternate
      // text content if there is any
      IntroText htmlText = element.getIntroText();
      if (htmlText != null && htmlText.getText() != null) {
        String textClass = (htmlText.getStyleId() != null) ? htmlText.getStyleId()
            : IIntroHTMLConstants.SPAN_CLASS_TEXT;
        HTMLElement text = generateTextElement(IIntroHTMLConstants.ELEMENT_PARAGRAPH, htmlText
            .getId(), textClass, element.getText(), indentLevel);
        if (text != null)
          divElement.addContent(text);
      }
    }
View Full Code Here

      objectElement.addAttribute(IIntroHTMLConstants.ATTRIBUTE_DATA, element.getSrc());
    if (element.getStyleId() != null)
      objectElement.addAttribute(IIntroHTMLConstants.ATTRIBUTE_CLASS, element.getStyleId());
    // The alternative content is added in case the browser can not render
    // the specified content.
    IntroText htmlText = element.getIntroText();
    if (htmlText != null && htmlText.getText() != null) {
      String textClass = (htmlText.getStyleId() != null) ? htmlText.getStyleId()
          : IIntroHTMLConstants.SPAN_CLASS_TEXT;
      HTMLElement text = generateTextElement(IIntroHTMLConstants.ELEMENT_PARAGRAPH, htmlText.getId(),
          textClass, element.getText(), indentLevel);
      if (text != null)
        objectElement.addContent(text);
    }
    if (element.getIntroImage() != null) {
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.intro.impl.model.IntroText

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.