Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to modify contents of the Outline view for a CSS file?
How to modify contents of the Outline view for a CSS file? [message #517561] Mon, 01 March 2010 10:25 Go to next message
ashitha shetty is currently offline ashitha shetty
Messages: 17
Registered: March 2010
Junior Member
Hi,

Is it possible to modify the contents of a CSS file shown in the Outline view? For instance,the outline view only displays the names of CSS proprties.Suppose I also want to display the value for those CSS properties in a name:value format.

Currently, internal CSS node adapters from WST are used to retrieve the content and labels for the nodes. Is there a way for me to plug in my adapter and perform custom logic?

Also since the CSS model(ICSSModel,ICSSNode,ICSSValue ...) is marked as internal,is it safe to use these entities?

Regards,
Ashitha.
Re: How to modify contents of the Outline view for a CSS file? [message #519754 is a reply to message #517561] Tue, 09 March 2010 20:46 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
ashitha wrote:
> Is it possible to modify the contents of a CSS file shown in the Outline
> view? For instance,the outline view only displays the names of CSS
> proprties.Suppose I also want to display the value for those CSS
> properties in a name:value format.
>
> Currently, internal CSS node adapters from WST are used to retrieve the
> content and labels for the nodes. Is there a way for me to plug in my
> adapter and perform custom logic?

No, but a high quality patch implementing the behavior you want
would be well received. The behavior of the outline can be
augmented through the use of custom editors and content types, but
for an existing editor and content type, you're restricted to
whatever flexibility is provided right there. And right now, that's
not much.

> Also since the CSS model(ICSSModel,ICSSNode,ICSSValue ...) is marked as
> internal,is it safe to use these entities?

Generally, no, not outside of the CSS plug-ins themselves, and
definitely not outside of the Source Editing project.

--
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: How to modify contents of the Outline view for a CSS file? [message #531305 is a reply to message #519754] Tue, 04 May 2010 13:51 Go to previous messageGo to next message
ashitha shetty is currently offline ashitha shetty
Messages: 17
Registered: March 2010
Junior Member
Hi Nitin,

Actually,it is not the Outline view that I want to enhance.
It is my custom view which looks pretty much like the Outline view (with additional fields and behaviour).

To just display the CSS nodes in this view, I can simply re-use the JFaceNodeContent & Label providers used by the standard Outline view. But since I need additional content and behavior here, I have to override the implementation within the CSS node adapters.

As all this logic resides deep within the internals of the CSS/editing plugins, I am not sure how to proceed without using any of the internal code.

Also,are there any future plans of:
1) Exposing these internal APIs (or)
2) Opening it up for extension?

Best Regards,
Ashitha.
Re: How to modify contents of the Outline view for a CSS file? [message #531340 is a reply to message #531305] Tue, 04 May 2010 14:58 Go to previous messageGo to next message
Nick Sandonato is currently offline Nick Sandonato
Messages: 126
Registered: July 2009
Senior Member
Hi Ashitha,

At the moment, we don't have plans to expose any of the internals as API; however, with an enhancement request outlining what in particular you wish to be added and the use cases you're trying to address, we can work towards exposing API or providing extension points.

You can drive the enhancement request from https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20So urce%20Editing selecting the wst.css component.

Thanks,
Nick
Re: How to modify contents of the Outline view for a CSS file? [message #537889 is a reply to message #531340] Fri, 04 June 2010 06:21 Go to previous message
ashitha shetty is currently offline ashitha shetty
Messages: 17
Registered: March 2010
Junior Member
Hi Nick,

I have raised an enhancement request for this issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=315718

Thanks,
Ashitha.
Previous Topic:I'd like to add a JS editor as a page in a FormEditor
Next Topic:How to Extend Web Page Editor
Goto Forum:
  


Current Time: Thu Oct 23 03:58:22 GMT 2014

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

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