Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Working with CSS Framework!!!
Working with CSS Framework!!! [message #1796475] Sun, 14 October 2018 12: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: Tue, 30 July 2024 08:37] by Moderator

Re: Working with CSS Framework!!! [message #1796650 is a reply to message #1796475] Tue, 16 October 2018 17:17 Go to previous message
Eclipse UserFriend
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.
Previous Topic:m2e plugin under Oxygen creates an empty web.xml
Next Topic:Spring Tool Suite with JSDT
Goto Forum:
  


Current Time: Wed Jul 23 11:03:42 EDT 2025

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

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

Back to the top