Working with CSS Framework!!! [message #1796475] |
Sun, 14 October 2018 16:22 |
Eclipse User |
|
|
|
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: Tue, 30 July 2024 12:37] 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 |
|
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
file.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.07160 seconds