Search in sources :

Example 1 with LIElement

use of elemental.html.LIElement in project che by eclipse.

the class Elements method createLiElement.

public static LIElement createLiElement(String... classNames) {
    LIElement elem = getDocument().createLIElement();
    addClassesToElement(elem, classNames);
    return elem;
}
Also used : LIElement(elemental.html.LIElement)

Example 2 with LIElement

use of elemental.html.LIElement in project che by eclipse.

the class EmptyEditorsPanel method render.

private void render(String title, Map<String, Action> actions) {
    this.title.setInnerText(title);
    container.removeAllChildren();
    Element listElement = Elements.createElement("ul", new String[] { style.list() });
    for (Map.Entry<String, Action> pair : actions.entrySet()) {
        LIElement liElement = Elements.createLiElement();
        liElement.appendChild(renderAction(pair.getKey(), pair.getValue()));
        listElement.appendChild(liElement);
    }
    container.appendChild((com.google.gwt.dom.client.Node) listElement);
}
Also used : CreateProjectAction(org.eclipse.che.ide.actions.CreateProjectAction) ImportProjectAction(org.eclipse.che.ide.actions.ImportProjectAction) Action(org.eclipse.che.ide.api.action.Action) NewFileAction(org.eclipse.che.ide.newresource.NewFileAction) Element(elemental.dom.Element) DivElement(com.google.gwt.dom.client.DivElement) LIElement(elemental.html.LIElement) SpanElement(elemental.html.SpanElement) HashMap(java.util.HashMap) Map(java.util.Map) LIElement(elemental.html.LIElement)

Aggregations

LIElement (elemental.html.LIElement)2 DivElement (com.google.gwt.dom.client.DivElement)1 Element (elemental.dom.Element)1 SpanElement (elemental.html.SpanElement)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 CreateProjectAction (org.eclipse.che.ide.actions.CreateProjectAction)1 ImportProjectAction (org.eclipse.che.ide.actions.ImportProjectAction)1 Action (org.eclipse.che.ide.api.action.Action)1 NewFileAction (org.eclipse.che.ide.newresource.NewFileAction)1