Search in sources :

Example 1 with ElementOutlineFigure

use of org.whole.lang.xml.ui.figures.ElementOutlineFigure in project whole by wholeplatform.

the class ElementOutlinePart method createFigure.

protected IFigure createFigure() {
    Element entity = getModelEntity();
    IContent content = entity.getContent();
    boolean startOpened = !EntityUtils.isResolver(content) && !(EntityUtils.isComposite(content) && content.wIsEmpty());
    return new ElementOutlineFigure(startOpened);
}
Also used : IContent(org.whole.lang.xml.model.IContent) Element(org.whole.lang.xml.model.Element) ElementOutlineFigure(org.whole.lang.xml.ui.figures.ElementOutlineFigure)

Aggregations

Element (org.whole.lang.xml.model.Element)1 IContent (org.whole.lang.xml.model.IContent)1 ElementOutlineFigure (org.whole.lang.xml.ui.figures.ElementOutlineFigure)1