Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Working with CSS Framework!!!
Working with CSS Framework!!! [message #1796475] Sun, 14 October 2018 16:22 Go to next message
Eclipse UserFriend
I am trying to figure out how to use the CSS implementation from core.css.
I assume that CSSStyleSheetImpl(ICSSStyleSheet) is the Base to start from.
Is that correct?

My questions are:

How do i create a ICSSStyleSheet from a URl(/path/stylesheet.css)?
How do create an empty (new) ICSSStyleSheet (is the correct way to call new DOMCSSImpl.createCSSStyleSheet()?)
How do i correctly add a rule to ICSSStyleSheet (call CSSStyleSheetImpl insertRule(String rule, int index))?
How do I save an ICSSStyleSheet to file?

Thanks in advance

[Updated on: Sun, 14 October 2018 20:18] by Moderator

Report message to a moderator

Re: Working with CSS Framework!!! [message #1796650 is a reply to message #1796475] Tue, 16 October 2018 21:17 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3528
Registered: July 2009
Senior Member

org.eclipse.wst.css.core provides a model for the contents of CSS files. It isn't a model built for use in rendering. Again, the seemingly random URLs
in your post cause me some concern.

Generally you start from calling org.eclipse.wst.sse.core.StructuredModelManager.getModelManager(), then asking the returned
manager to get you a model for read or edit, casting the result to the intended subtype of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel,
in this case, org.eclipse.wst.css.core.internal.provisional.document.ICSSModel. Its ICSSDocument will give you access to work with the structure of the

Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:m2e plugin under Oxygen creates an empty web.xml
Next Topic:Spring Tool Suite with JSDT
Goto Forum:

Current Time: Wed Nov 20 07:58:30 GMT 2019

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

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

Back to the top