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 226377 - CSS Styles window shows incorrect content
Summary: CSS Styles window shows incorrect content
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-20 09:14 UTC by Petr Jiricka
Modified: 2013-02-22 05:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-02-20 09:14:41 UTC
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.
Comment 1 Jan Stola 2013-02-20 09:28:38 UTC
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).
Comment 2 Marek Fukala 2013-02-21 12:51:14 UTC
fixed in web-main#2117bfeaee2f
Comment 3 Quality Engineering 2013-02-22 05:31:04 UTC
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