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 221263 - Do not show Selection section of CSS Styles view for files that it doesn't support
Summary: Do not show Selection section of CSS Styles view for files that it doesn't su...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-01 14:46 UTC by Jan Stola
Modified: 2012-11-05 23:17 UTC (History)
1 user (show)

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 Jan Stola 2012-11-01 14:46:20 UTC
This issue is inspired by issue 221174.

When a file is not executed then the Selection section of CSS Styles view shows a hint to execute the file in the browser with NetBeans integration. This hit is misleading when the HTML file is from Java or Web project. There is no action that can be performed on these files to make Selection view usable. Hence, we shouldn't show it.

I assume that this cannot be solved without some API changes that allow the view to provide some information about the supported files/projects.
Comment 1 Marek Fukala 2012-11-01 15:29:12 UTC
implemented in web-main#686842c36716

just "say no" in CssStylesPanelProvider.providesContentFor(FileObject file) if the file is a bad one.
Comment 2 Quality Engineering 2012-11-02 03:27:39 UTC
Integrated into 'main-golden', will be available in build *201211020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/686842c36716
User: Marek Fukala <mfukala@netbeans.org>
Log: #221263 - Do not show Selection section of CSS Styles view for files that it doesn't support
Comment 3 Quality Engineering 2012-11-05 23:17:19 UTC
Integrated into 'releases', will be available in build *201211052012* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/5b5e82232bfa
User: Marek Fukala <mfukala@netbeans.org>
Log: #221263 - Do not show Selection section of CSS Styles view for files that it doesn't support
(transplanted from 686842c3671676fa9087eab32d42b6655b3a13f2)