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

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


                + model.getPresentation().getImplementationStyles());
        text.append("\nPresentation type = " //$NON-NLS-1$
                + model.getPresentation().getType());
        text.append("\nHome page id = " //$NON-NLS-1$
                + model.getPresentation().getHomePageId());
        IntroHead headContent = model.getPresentation().getHead();
        if (headContent != null)
            text.append("\nPresentation Shared Head = " + headContent.getSrc()); //$NON-NLS-1$
        text.append("\nNumber of pages (not including Root Page) = " //$NON-NLS-1$
                + model.getPages().length);
        text.append("\nNumber of shared groups = " //$NON-NLS-1$
                + model.getChildrenOfType(AbstractIntroElement.GROUP).length);
        text
View Full Code Here


    // include it. Additional head content can be specified at the
    // implementation level (which would apply to ALL pages) and at the
    // page level (which would apply only to that particular page).
    // For the implementation's head contribution:
    StringBuffer content = null;
    IntroHead introHead = IntroPlugin.getDefault().getIntroModelRoot().getPresentation().getHead();
    if (introHead != null) {
      content = readFromFile(introHead.getSrc(), introHead.getInlineEncoding());
      if (content != null)
        head.addContent(content);
    }
    // For the page's head contribution:
    // TODO: there should only be one of these at the page level, not a
    // collection..
    IntroHead[] htmlHeads = introPage.getHTMLHeads();
    for (int i = 0; i < htmlHeads.length; i++) {
      introHead = htmlHeads[i];
      if (introHead != null) {
        content = readFromFile(introHead.getSrc(), introHead.getInlineEncoding());
        if (content != null)
          head.addContent(content);
      }
    }
    return head;
View Full Code Here

TOP

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

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.