Use NetBeans utilities for font color settings#30
Conversation
01fb0c8 to
79a86ad
Compare
|
Or maybe from mimetype to the 'Lookup.lookup()` call is the slowest in the few method calls. |
|
Currently I do not care about the performance. A better way than caching would be to add a listener to the settings. Like it is done in standard NB: When you change a color in the option, then it is reflected in the editor after saving the options. |
I agree. Or do you know a better one? |
|
@Shredder121: I do not know a better implementation. But I did not search for others. I was pleased with the solution I implemented originally. It worked at least [grin] |
|
Yeah, and then register the listener for each MimeType it sees along the way. Shall I do that then? |
|
Yes. Try that. Some remarks:
|
|
@Shredder121 I know it is very late but is this still relevant for you? We already had a PR that it is working for the latest NetBeans version 23. Otherwise I will close the PR. |
Hey @markiewb,
Nice plugin, why haven't I seen this before?
👍
Do you think it would make sense to add caching from mimetype to
AttributeSet?