Search in sources :

Example 21 with SpanElement

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

the class ResultNode method updatePresentation.

@Override
public void updatePresentation(@NotNull NodePresentation presentation) {
    SpanElement spanElement = Elements.createSpanElement(styles.styles().presentableTextContainer());
    spanElement.setInnerHTML("Usages of <span class=\"" + resources.css().searchMatch() + "\">" + response.getSearchElementLabel() + "</span> [" + calculateMatchesSize(response.getMatches()) + " occurrences]");
    presentation.setUserElement((Element) spanElement);
}
Also used : SpanElement(elemental.html.SpanElement)

Aggregations

SpanElement (elemental.html.SpanElement)21 Element (elemental.dom.Element)7 Event (elemental.events.Event)6 EventListener (elemental.events.EventListener)6 SVGImage (org.vectomatic.dom.svg.ui.SVGImage)5 DivElement (elemental.html.DivElement)4 TreeNodeElement (org.eclipse.che.ide.ui.tree.TreeNodeElement)4 Node (elemental.dom.Node)3 CustomEvent (elemental.events.CustomEvent)2 Completion (org.eclipse.che.ide.api.editor.codeassist.Completion)2 CompletionProposal (org.eclipse.che.ide.api.editor.codeassist.CompletionProposal)2 LinearRange (org.eclipse.che.ide.api.editor.text.LinearRange)2 SVGResource (org.vectomatic.dom.svg.ui.SVGResource)2 Scheduler (com.google.gwt.core.client.Scheduler)1 DivElement (com.google.gwt.dom.client.DivElement)1 Style (com.google.gwt.dom.client.Style)1 KeyCodes (com.google.gwt.event.dom.client.KeyCodes)1 MatchResult (com.google.gwt.regexp.shared.MatchResult)1 Timer (com.google.gwt.user.client.Timer)1 AsyncCallback (com.google.gwt.user.client.rpc.AsyncCallback)1