Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Import Rule in css
Import Rule in css [message #193756] Fri, 01 June 2007 07:23 Go to next message
Stefan Holzknecht is currently offline Stefan HolzknechtFriend
Messages: 31
Registered: July 2009
Member
Hi,
I need css styles that are available for a particular element in html. I
get that information by asking for the IStyleSheetAdapter of the
html DOMNode. The adapter I get actually serves the style sheets well
but seems to fail with import rules (e.g. @import url("global.css");).
How can I get imported sheets? I noted, that the css editor actually
supports the import rules neither (this rule is not present as proposal
in content assist, no properties are displayed). Should I file a bug for
the missing @import rule support?
Thanks,
Stefan
Re: Import Rule in css [message #194059 is a reply to message #193756] Wed, 06 June 2007 13:05 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Stefan Holzknecht wrote:
> Hi,
> I need css styles that are available for a particular element in html. I
> get that information by asking for the IStyleSheetAdapter of the html
> DOMNode. The adapter I get actually serves the style sheets well but
> seems to fail with import rules (e.g. @import url("global.css");). How
> can I get imported sheets? I noted, that the css editor actually
> supports the import rules neither (this rule is not present as proposal
> in content assist, no properties are displayed). Should I file a bug for
> the missing @import rule support?

Yes.

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols&component=wst.css

--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Import Rule in css [message #194067 is a reply to message #194059] Wed, 06 June 2007 14:11 Go to previous messageGo to next message
Stefan Holzknecht is currently offline Stefan HolzknechtFriend
Messages: 31
Registered: July 2009
Member
Hi,
after reviewing my code I figured out that class
'org.eclipse.wst.css.core.internal.util.AbstractCssTraverser ' provides a
property setTraverseImported(boolean) that works as expected.
Nevertheless, the content assist of the css editor could be improved and
the ability to link to an imported css file would be nice.
Stefan
Re: Import Rule in css [message #194105 is a reply to message #194067] Wed, 06 June 2007 17:07 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Stefan Holzknecht wrote:
> Hi,
> after reviewing my code I figured out that class
> 'org.eclipse.wst.css.core.internal.util.AbstractCssTraverser ' provides a
> property setTraverseImported(boolean) that works as expected.
> Nevertheless, the content assist of the css editor could be improved and
> the ability to link to an imported css file would be nice.

Patches are welcome, if you're interested in implementing the
improvements you'd like to see.

--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Disabling WTP related Preference pages
Next Topic:org.eclipse.jst.web_core.feature
Goto Forum:
  


Current Time: Thu Apr 25 09:27:59 GMT 2024

Powered by FUDForum. Page generated in 0.03257 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top