Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Changing the text color of model Elements(Changing the text color of model Elements)
Changing the text color of model Elements [message #1078731] Sat, 03 August 2013 13:02 Go to next message
Salwa Alzahmi is currently offline Salwa Alzahmi
Messages: 18
Registered: June 2013
Junior Member
Hello,

I would like to change the text color of some elements in the model ..
what to override in the AdaptorFactoryLabelProvidor.


thankx
salwa
Re: Changing the text color of model Elements [message #1079166 is a reply to message #1078731] Sun, 04 August 2013 05:34 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26048
Registered: July 2009
Senior Member
Salwa,

You can change the GenModel's Color Providers property to true,
regenerate and then override the
org.eclipse.emf.edit.provider.ItemProviderAdapter.getForeground(Object)
method in your generated item providers. See
org.eclipse.emf.edit.provider.IItemColorProvider for how to specify the
color as a URI.

On 03/08/2013 3:02 PM, Salwa Alzahmi wrote:
> Hello,
> I would like to change the text color of some elements in the model ..
> what to override in the AdaptorFactoryLabelProvidor.
>
>
> thankx
> salwa
Previous Topic:Drag& drop elements between two models
Next Topic:Modeling a HashMap
Goto Forum:
  


Current Time: Thu Sep 18 03:46:06 GMT 2014

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

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