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

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


        String key = "subtitle-style-id"; //$NON-NLS-1$
        return getProperty(key);
    }

    private String findTextFromPath(AbstractIntroContainer parent, String path) {
        AbstractIntroElement child = parent.findTarget(root, path);
        if (child != null && child.isOfType(AbstractIntroElement.TEXT)) {
            makeFiltered(child);
            return ((IntroText) child).getText();
        }
        return null;
    }
View Full Code Here


          "background-image : url(" + introPage.getBackgroundImage() + ")"); //$NON-NLS-1$ //$NON-NLS-2$

    // Add any children of the page, in the order they are defined
    AbstractIntroElement[] children = introPage.getChildren();
    for (int i = 0; i < children.length; i++) {
      AbstractIntroElement child = children[i];
      // use indentLevel + 2 here, since this element is contained within
      // the pageContentDiv
      HTMLElement childElement = generateIntroElement(child, indentLevel + 2);
      if (childElement != null) {
        addMixinStyle(childElement, child.getMixinStyle());
        pageContentDiv.addContent(childElement);
      }
    }
    body.addContent(pageContentDiv);
    return body;
View Full Code Here

public class IntroModelContentProvider implements ITreeContentProvider {

    public Object[] getChildren(Object element) {

        AbstractIntroElement introElement = null;
        if (element instanceof AbstractIntroElement)
            // synch the resource first.
            introElement = (AbstractIntroElement) element;

        if (introElement != null
                && introElement
                    .isOfType(AbstractIntroElement.ABSTRACT_CONTAINER))
            return ((AbstractIntroContainer) introElement).getChildren();

        return new Object[0];
    }
View Full Code Here

      divElement.addAttribute(IIntroHTMLConstants.ATTRIBUTE_STYLE, style);
    }
    // Add any children of the div, in the order they are defined
    AbstractIntroElement[] children = element.getChildren();
    for (int i = 0; i < children.length; i++) {
      AbstractIntroElement child = children[i];
      HTMLElement childElement = generateIntroElement(child, indentLevel + 1);
      if (childElement != null) {
        addMixinStyle(childElement, child.getMixinStyle());
        childContainer.addContent(childElement);
      }
    }
    return divElement;
  }
View Full Code Here

        return new Object[0];
    }

    public Object getParent(Object element) {
        AbstractIntroElement introElement = null;
        if (element instanceof AbstractIntroElement) {
            // synch the resource first.
            introElement = (AbstractIntroElement) element;
            return introElement.getParent();
        }
        return null;
    }
View Full Code Here

        return null;
    }


    public boolean hasChildren(Object element) {
        AbstractIntroElement introElement = null;
        if (element instanceof AbstractIntroElement)
            // synch the resource first.
            introElement = (AbstractIntroElement) element;
        if (introElement != null
                && introElement
                    .isOfType(AbstractIntroElement.ABSTRACT_CONTAINER))
            return true;
        return false;
    }
View Full Code Here

        super();
    }

    public Image getImage(Object element) {
        Image image = null;
        AbstractIntroElement introElement = null;
        if (element instanceof AbstractIntroElement)
            // synch the resource first.
            introElement = (AbstractIntroElement) element;
        if (introElement == null)
            return null;

        int elementType = introElement.getType();
        switch (elementType) {
        case AbstractIntroElement.GROUP:
        case AbstractIntroElement.PAGE:
        case AbstractIntroElement.HOME_PAGE:
            image = ImageUtil.getImage(ImageUtil.INTRO_MODEL_CONTAINER);
View Full Code Here

    }

    public String getText(Object element) {

        String label = null;
        AbstractIntroElement introElement = null;
        if (element instanceof AbstractIntroElement)
            // synch the resource first.
            introElement = (AbstractIntroElement) element;
        if (introElement == null)
            return null;

        int elementType = introElement.getType();
        switch (elementType) {
        case AbstractIntroElement.GROUP:
            label = "GROUP: " + ((IntroGroup) introElement).getLabel(); //$NON-NLS-1$
            break;
        case AbstractIntroElement.LINK:
View Full Code Here

TOP

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

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.