Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Changing background color of XtextEditor programmatically
Changing background color of XtextEditor programmatically [message #1763872] Mon, 22 May 2017 11:23 Go to next message
Alexander Fichtinger is currently offline Alexander FichtingerFriend
Messages: 62
Registered: January 2013
Member
Hi guys!

We want to change the background color of our Xtext Editor, because when it is readonly we want to give the user a clear feedback, that he cannot change anything.

Is it possible to change the background color of an editor in Eclipse programmatically?

Thanks for any help =)
Re: Changing background color of XtextEditor programmatically [message #1763997 is a reply to message #1763872] Tue, 23 May 2017 18:23 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 788
Registered: January 2012
Senior Member

You can change editor colours using CSS, which is how the dark theme does it. You might ask on the Xtext forums as they may have a different approach.

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Adding dynamic context menu entry to Project Explorer
Next Topic:Decorating section of form fields
Goto Forum:
  


Current Time: Sat Nov 17 18:14:05 GMT 2018

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

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

Back to the top