I was trying to subclass the TextPropertyComponent to create a restriction so only integer values would be accepted and I was struggling to get it working by overriding the setText() method, so I decided to create a subclass of PropertyComponent instead, using the TextPropertyComponent as a template.
Anyway, while doing this, I found the following, which I can't get my head around:
No.. If you look inside the Label::getText method, it's really not that simple. Are you reporting this because you actually found a situation where the TextPropertyComponent isn't working correctly?
because in that case the TextProperty's getText() does not return the same value as the TextEditor's getText().
To be clear, I'm just pointing this out because it caused me confusion while trying to subclass the TextPropertyComponent and means you can't override setText() without also overriding getText() (which isn't the end of the world).
P.S. I wasn't sure how to read your comment re. the Label::getText method, as I can't see that this is called anywhere here.
That's being called in the same context twice, without passing in a value for returnActiveEditorContents, so it must be returning the same value each time.
Well the point is that if you've overridden TextPropertyComponent::getText, then that could be doing anything, it's not necessarily just returning the label's getText.