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.
Product Version: NetBeans IDE Dev (Build web-main-9941-on-20130220) Java: 1.7.0_15; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b03 System: Mac OS X version 10.7.5 running on x86_64; UTF-8; en_US (nb) This is a follow-up of bug 226163. 1. Create a HTML5 project, index.html will be open and CSS Styles window will be open 2. Create a Java SE project 3. Create a HTML project in this Java Se project 4. Go back to index.html from the HTML5 project, and in the CSS Styles window, select the Document tab, and then the Selection tab 5. Go to the index.html from the Java SE project => The CSS Styles window now shows message "Run the file in browser...", and a disabled "Run newfile.html" button - this UI belongs to the Selection tab of HTML documents, which should not be present for HTML files inside a Java SE project. Instead, it should show the Style Sheets tree, corresponding to the Document tab.
This is a problem in css.visual. The CSS Styles view should not show the content of a panel that returns false from CssStylesPanelProvider.providesContentFor() (as SelectionView does correctly in this case).
fixed in web-main#2117bfeaee2f
Integrated into 'main-golden', will be available in build *201302212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2117bfeaee2f User: Marek Fukala <mfukala@netbeans.org> Log: #226377 - CSS Styles window shows incorrect content