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.

Bug 219954 - Rule Editor remains non-updated after closing the project or moving into another file
Summary: Rule Editor remains non-updated after closing the project or moving into anot...
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.3
Hardware: All All
: P4 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-11 21:43 UTC by Martin Fousek
Modified: 2014-10-06 13:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot with the Rule Editor (83.64 KB, image/png)
2012-10-11 21:43 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2012-10-11 21:43:37 UTC
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.
Comment 1 Vladimir Riha 2012-10-11 23:50:05 UTC
Sounds similar to issue 219842
Comment 2 Marek Fukala 2012-10-12 05:44:55 UTC
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
Comment 3 Marek Fukala 2012-10-12 05:49:36 UTC
(In reply to comment #1)
> Sounds similar to issue 219842

No, I think, it's not related.
Comment 4 Martin Fousek 2012-10-12 05:54:32 UTC
(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.
Comment 5 Marek Fukala 2012-10-12 06:04:34 UTC
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.
Comment 6 Marek Fukala 2012-10-12 09:07:25 UTC
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.