1

I see this tutorial, and create abstract form tool button. But in RAP I can't configure the icon image.

My tool button is like this :

 @Order(10.0)
public class TestPageTool extends AbstractFormToolButton {

  @Override
  protected String getConfiguredIconId() {

    return Icons.EclipseScout;
  }

  @Override
  protected String getConfiguredText() {

    return TEXTS.get("TestPage");
  }
}

and the result is :

enter image description here

Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97
  • This is an exact duplicate of this topic on the scout Forum: [Toolbar doesn't show any Icons](https://www.eclipse.org/forums/index.php?t=msg&th=1065300&goto=1690876msg_1690876) – Jmini Apr 14 '15 at 16:27

1 Answers1

1

A solution can be found in the widgets demo application (live demo, source, about)

The images are defined twice:

In the RAP client, you also need to customize the CSS, to bind the icon defined in the RAP Bundle with the Tool Button. Check the content of application.css to have an example:

org.eclipsescout.demo.widgets.ui.rap/theme/application.css

Jmini
  • 9,189
  • 2
  • 55
  • 77