Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Riena/Custom Ridgets
< Riena
Custom ridgets
There is a possibility for an application to provide and use its own ridgets (see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=259937). This feature is meant for situations where a specific ridget (and corresponding widget) is not already present in riena. To support a new custom ridget the following has to be done:
- For the widget create a ridget class implementing as minimum interface IRidget (there can be found many examples for ridgets in riena i.e. all subclasses of IRidget).
- Further a mapping from widget class to ridget class has to be provided to create the corresponding ridget of a widget from the view for the controller at runtime. This is done by adding the desired mapping to the existing mappings of singleton SwtControlRidgetMapper: SwtControlRidgetMapper.getInstance().addMapping(CustomWidget.class, CustomRidget.class) for example. For more details look at the JavaDoc of class SwtControlRidgetMapper.