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 223195 - CSS Styles window does not show styles for the selection after switching to css file
Summary: CSS Styles window does not show styles for the selection after switching to c...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-03 17:04 UTC by Petr Jiricka
Modified: 2012-12-05 15:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (47.47 KB, application/octet-stream)
2012-12-03 17:04 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2012-12-03 17:04:41 UTC
Created attachment 128796 [details]
IDE log file

1. Create a project from the AngularJSPhoneCat sample
2. Make sure index.html is open
3. Run the project, enable select mode in browser
4. Select an element in the browser, Styles window will be populated accordingly
5. Double-click app.css in the Applied Styles section to open it, the CSS Styles window will change to show the structure of app.css
6. Go back to the browser and select an element

=> I would expect that CSS Styles window will be populated based on this selection again, but the structure for app.css continues to be open.

This bug looks similar to issue 217677.
I am attaching IDE log file, as it contains some warnings.
Comment 1 Marek Fukala 2012-12-04 14:52:55 UTC
I agree this would be better than the current behaviour.

I think this should be implemented in web.inspect. To aim the CSS Styles to the wanted file, just do EditorCookie.open() on the file.
Comment 2 Jan Stola 2012-12-05 15:44:17 UTC
Fixed - the inspected html file is opened/moved to front when an element is selected in the browser.
Comment 3 Jan Stola 2012-12-05 15:53:04 UTC
Modified files: http://hg.netbeans.org/web-main/rev/053dcc108316