eclipse / nebula

Nebula Project
https://eclipse.org/nebula
Eclipse Public License 2.0
84 stars 98 forks source link

Open the NebulaSlider to allow user extension #550

Closed jdumont-a4t closed 7 months ago

jdumont-a4t commented 7 months ago

Hi,

We want to use the NebulaSlider component in one of our projects, but we'll need to modify its style so that it integrates with our Eclipse RCP application. At the moment, this isn't possible because the member variables are 'private final' and the methods for drawing the component are in 'private' too.

Would it be possible to allow the customisation of the slider by opening the elements with specific methods, or by allowing them to be overridden by inheritance by passing them as protected?

Thanks for your feedback.

lcaron commented 7 months ago

The graphical information are now handled by a renderer that could be customized

image

Please check the example located at : https://github.com/eclipse/nebula/blob/master/widgets/nebulaslider/org.eclipse.nebula.widgets.nebulaslider.snippets/src/org/eclipse/nebula/widgets/opal/nebulaslider/snippets/NebulaSliderSnippetOtherRenderer.java

Hope you'll enjoy ;)

lcaron commented 7 months ago

It's not a renderer, it is a "graphic configuration"

jdumont-a4t commented 7 months ago

Thanks a lot for your help, it seems that it will answer to my needs. I can't wait to deploy the new version !