|
|
|
Re: Change Icon of checkable Table [message #1060384 is a reply to message #1060314] |
Fri, 24 May 2013 11:27 |
|
Hi David
The theming does not work in this case because the rap table ui of scout does not use the checkbox mechanism provided by rwt/swt (SWT.CHECK) due to some limitations. Instead it uses the scout icon provider servies to resolve the checkbox icon.
To replace the icon with another one you have to make sure that at least one of the registered icon provider services finds your checkbox icons.
To do so just register the IconProviderService as extension in your rap-plugin with a high priority:
<extension
point="org.eclipse.scout.service.services">
<service
class="org.eclipse.scout.rt.client.services.common.icon.IconProviderService"
createImmediately="false"
factory="org.eclipse.scout.service.DefaultServiceFactory"
ranking="100">
</service>
The IconProviderService loads the icons from the folder resources/icons of the host plugin, so put your icons in that folder of the rap-plugin. Make sure the names are correct ("checkbox_no.png/gif", "checkbox_yes.png/gif").
Regards
Claudio
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02689 seconds