Examples of IntroText


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

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

            }
        }

        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

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

      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

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

      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

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

      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
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.