문제

I tried to design some components in a e4 RCP application with css.

One thing I stumbled upon was that when you execute

cssEngine.setClassname(composite, "class1");
cssEngine.setClassname(composite, "class2");

It seems like composite would not have "class1" anymore but only "class2".

Isn't it possible like on website elements (<a class="class1 class2"></a>) to give one object multiple classes?

도움이 되었습니까?

해결책

Yes, HTML does support multiple classes. However the e4 IStylingEngine and WidgetElement classes only seem to support one class.

Update: Testing this further the CSS class matching code does deal with spaces in the class string so it is possible to specify multiple classes separated by space.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top