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 198049 - Missing CSS node menu items for "Copy xxx Style" in files menu
Summary: Missing CSS node menu items for "Copy xxx Style" in files menu
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Jan Stola
Depends on:
Reported: 2011-04-24 23:06 UTC by err
Modified: 2014-10-06 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description err 2011-04-24 23:06:39 UTC
In help there's "Adding CSS References to Documents". But when I right click on the css node in files, the menu items "Copy HTML Style" (and XML one) do not exist.

Ah, I see now that the menu items are there when I right click in the file.

I was going to try this since it seems that code completion for the html doesn't include my css styles when completing 'class="|"'. So I copied the link and got the link/comment below, but I still don't get completion for my styles. Should that work?

Also, the copied style has a fully qualified name "http...<system-node-name>...", whereas the stylesheet is in the same directory as the html file. Problem when copy this to a different location. Seems a relative path, when possible, is more appropriate. Should I file a bug about this?

<!-- Look of this document is driven by a CSS referenced by an href attribute. See -->
<link rel="StyleSheet" type="text/css" href="http://seeker:8082/resource/file%3A/C%3A/a/src/jvi-dev/jvi/doc/htdocs/stylesheet.css" media="screen" >

Product Version: NetBeans IDE 7.0 (Build 201104080000)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\erra\.netbeans\7.0
Comment 1 Marek Fukala 2011-06-07 07:25:42 UTC
The reason why not more appropriate link is generated is that netbeans doesn't know where are you going to put the link after it is actually generated on the css file. Since the action just "blindly" copies the link to the clipboard it must be generic so it works anywhere. I admit it is not useful in much cases, it is very old code which I think should be removed.