More info needed + error on hover #1229

Submitted 8 months ago

I’d like to understand better what makes the CheckboxPropertyHandler class work. I could not figure out how Eclipse "knows" that this class is the one responsible for handling the Checkbox class on the .css.

The way it is implemented, I thought it would be called for every widget and apply the settings only to Checkbox widgets, but that does not seem to be the case.

On a side note, I get NullPointerExceptions on my Console, coming from the second return statement on the retrieveCSSProperty method when I hover my cursor over the Checkbox. I don’t know if that’s expected.


  8 months ago

A NPE should not occur I will try to revalidate.

The assignment comes from the CompositeElement which is already defined by the platform. org.eclipse.e4.ui.css.core.elementProvider is therefore already existing. I try to think about a good way to explain this and will try to re-write the part to make it easier to understand.

Please login to write a comment.