This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 125811 [details] screenshot with the Rule Editor Not sure if it's bug or by design, but when I'm in some CSS style, the Rule Editor shows me correctly all style's settings. But when I close the project (so the file is closed as well) or switch to another non-css tab (some .html page), the Rule Editor stays non-updated and shows still settings for the last editer, focuser Rule. See the screenshot.
Sounds similar to issue 219842
If you opened the RuleEditor manually then it stays opened and shows the last selected rule. If the window is opened automatically then it is also closed automatically. Not sure if this is a real problem. Can be fixed I think
(In reply to comment #1) > Sounds similar to issue 219842 No, I think, it's not related.
(In reply to comment #2) > If you opened the RuleEditor manually then it stays opened and shows the last > selected rule. If the window is opened automatically then it is also closed > automatically. > > Not sure if this is a real problem. Can be fixed I think It's up to you Marek. I was just surprised that the Rule Editor keep all values after closing all files (project which closed all files). I can for sure live with it if it's by desing or you think that that it's useless to fix this. ;) According the your first paragraph it looks to me to work so by design. Feel free to close it as wontfix.
No it is not intentional, I'm aware of that. The point was that it is harmless - notice that the RE still works even if you closed the file/project - cool feature :-). I'll fix it, but low priority, thanks.
The RE needs to keep its last state as it is not only invoked from the css source editor but also from the CSSStyles window. In such case user may change files arbitrarily and until a css source is focused it keeps the last selected rule. Even in this case the rule editor content is updated based on the source aware parsing task so there's no difference between these two cases. The usecase is IMO valid - no CSSStyles window active, user opened the RE manually and moved focus to some non-css file. In this case the RE content should possibly by cleared.