Search in sources :

Example 1 with ToolButton

use of org.eclipse.che.ide.api.parts.base.ToolButton in project che by eclipse.

the class ProjectExplorerViewImpl method initGoIntoBackButton.

private void initGoIntoBackButton() {
    goBackButton = new ToolButton(FontAwesome.ARROW_CIRCLE_O_LEFT);
    goBackButton.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            tree.getGoInto().reset();
        }
    });
    goBackButton.ensureDebugId(GO_BACK_BUTTON_ID);
    Tooltip.create((elemental.dom.Element) goBackButton.getElement(), BOTTOM, MIDDLE, "Go Back");
    addToolButton(goBackButton);
}
Also used : ClickHandler(com.google.gwt.event.dom.client.ClickHandler) ToolButton(org.eclipse.che.ide.api.parts.base.ToolButton) ClickEvent(com.google.gwt.event.dom.client.ClickEvent)

Aggregations

ClickEvent (com.google.gwt.event.dom.client.ClickEvent)1 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)1 ToolButton (org.eclipse.che.ide.api.parts.base.ToolButton)1