Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » styling the selected item of a list or tree
styling the selected item of a list or tree [message #993928] Tue, 25 December 2012 18:55 Go to next message
Markus Oley is currently offline Markus Oley
Messages: 253
Registered: July 2009
Location: Germany
Senior Member
Hi to all,

I try to style my application, I implemented with e4.
After looking for a complete reference, which css-elements are allowed, and after
installing e4 css style, which doesn't work at me, I am a little bit helpless.

Can give me a hint where I found this information or can you please
give me an advice what to write in my .css-file to style my selection of a list/tree/..

Thanks in advance,
Cheers
Markus
Re: styling the selected item of a list or tree [message #994052 is a reply to message #993928] Wed, 26 December 2012 03:56 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de Alwis
Messages: 163
Registered: January 2012
Senior Member

There's some documentation at:

http://wiki.eclipse.org/Eclipse4/CSS

The easiest way to experiment is to install the CSS Spy tools, available fom he install ite at:

http://download.eclipse.org/e4/updates/0.12

It provides two tools, the Spy and Scratchpad. Both are opened using keyboard shortcuts (can be rebound) or through the Quick Access bar. The Spy supports introspecting across the different widgets and theur corresponding CSS. The Scratchpad supports experimenting with writing CSS to verify/understand their effect.

Oh, and to style a Tree, you can o something like:

Tree { background: yellow; }


Brian.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.

[Updated on: Wed, 26 December 2012 04:00]

Report message to a moderator

Re: styling the selected item of a list or tree [message #994138 is a reply to message #994052] Wed, 26 December 2012 08:55 Go to previous messageGo to next message
Markus Oley is currently offline Markus Oley
Messages: 253
Registered: July 2009
Location: Germany
Senior Member
Hi Brian,

thank you for your answer,

Spy and Scratchpad don't work for me, pressing the keys nothing happens Sad

I need to style the selected item of a tree.
How do I have to write my css?

Thanks
Markus
Re: styling the selected item of a list or tree [message #995936 is a reply to message #994138] Mon, 31 December 2012 10:17 Go to previous messageGo to next message
Markus Oley is currently offline Markus Oley
Messages: 253
Registered: July 2009
Location: Germany
Senior Member
Anybody an idea?

Re: styling the selected item of a list or tree [message #1006677 is a reply to message #995936] Fri, 01 February 2013 07:04 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de Alwis
Messages: 163
Registered: January 2012
Senior Member

Oops sorry Markus -- missed your reply. You're Isely hitting one of three issues:



  1. You're running a newer version: the initial key bindings I chose (Alt-Shift F4 and Control-Alt-Shift-F4) dudn't work so well on Windows and Linux. I recntly changed the bindings to Alr-Shift-F4 and -F5.
  2. You're loading from a previously persisted model. Although the Spy installs itself on startup via a processor/addon, I've seen cases where those new bindings don't lays seem to take effect... Try clearing out your persisted state.
  3. You don't have the spy bundle in your launch configuration.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: styling the selected item of a list or tree [message #1006678 is a reply to message #995936] Fri, 01 February 2013 07:06 Go to previous message
Brian de Alwis is currently offline Brian de Alwis
Messages: 163
Registered: January 2012
Senior Member

Oops sorry Markus -- missed your reply. You're likely hitting one of three issues:



  1. You're running a newer version: the initial key bindings I chose (Alt-Shift F4 and Control-Alt-Shift-F4) dudn't work so well on Windows and Linux. I recntly changed the bindings to Alr-Shift-F4 and -F5.
  2. You're loading from a previously persisted model. Although the Spy installs itself on startup via a processor/addon, I've seen cases where those new bindings don't lays seem to take effect... Try clearing out your persisted state.
  3. You don't have the spy bundle in your launch configuration.


(Apologies if this is double-posted; my first reply never bowed up?)


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:P2 UI menu contributions in E4 application
Next Topic:3.x Properties View contributed from e4 view
Goto Forum:
  


Current Time: Mon Jul 28 00:36:25 EDT 2014

Powered by FUDForum. Page generated in 0.06815 seconds