Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Rookie Q: How get StyledCellLabelProvider from EMF.edit(How can I achieve with EMF.edit what I can with a StyledCellLabelProvider)
Rookie Q: How get StyledCellLabelProvider from EMF.edit [message #1471826] Thu, 13 November 2014 11:10 Go to next message
Bernhard Anzeletti is currently offline Bernhard AnzelettiFriend
Messages: 17
Registered: July 2011
Location: Austria
Junior Member
Hi all,
I'm just beginning EMF, RCP and SWT/JFace... can you pls. explain to me how I can get a "StyledCellLabelProvider" - like behaviour from EMF.edit's AdapterFactoryLabelProviders? I found the ITableItemLabelProvider (works fine), ITableItemColorProvider and ITableItemFont provider but I don't see where I can set StyleRanges. Do I have to use IStyledLabelProvider? This does not seem to be the right thing for tables...
Any help appreciated!
Kind regards
Bernhard
Re: Rookie Q: How get StyledCellLabelProvider from EMF.edit [message #1471957 is a reply to message #1471826] Thu, 13 November 2014 13:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30351
Registered: July 2009
Senior Member
Bernhard,

In the GenModel, set the Edit property "Styled Providers" to true. That
should generate a good starting point to experiment with all the types
of viewers.


On 13/11/2014 12:10 PM, Bernhard Anzeletti wrote:
> Hi all,
> I'm just beginning EMF, RCP and SWT/JFace... can you pls. explain to
> me how I can get a "StyledCellLabelProvider" - like behaviour from
> EMF.edit's AdapterFactoryLabelProviders? I found the
> ITableItemLabelProvider (works fine), ITableItemColorProvider and
> ITableItemFont provider but I don't see where I can set StyleRanges.
> Do I have to use IStyledLabelProvider? This does not seem to be the
> right thing for tables... Any help appreciated!
> Kind regards
> Bernhard
>
Re: Rookie Q: How get StyledCellLabelProvider from EMF.edit [message #1472229 is a reply to message #1471957] Thu, 13 November 2014 18:08 Go to previous messageGo to next message
Bernhard Anzeletti is currently offline Bernhard AnzelettiFriend
Messages: 17
Registered: July 2011
Location: Austria
Junior Member

Ed,
thank you for your fast reply! I just tried it and saw exactly the way it's meant to operate Smile
Thank you very much!

Kind regards,
Bernhard

Btw, the generated code does not compile but this can easily be fixed.
Re: Rookie Q: How get StyledCellLabelProvider from EMF.edit [message #1472953 is a reply to message #1472229] Fri, 14 November 2014 08:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30351
Registered: July 2009
Senior Member
Bernhard,

There was a generator bug in 2.9, but it should compile if you're using
EMF 2.10. If not, please open a bugzilla with an example.

On 13/11/2014 7:08 PM, Bernhard Anzeletti wrote:
>
> Ed,
> thank you for your fast reply! I just tried it and saw exactly the way
> it's meant to operate :) Thank you very much!
>
> Kind regards,
> Bernhard
>
> Btw, the generated code does not compile but this can easily be fixed.
Re: Rookie Q: How get StyledCellLabelProvider from EMF.edit [message #1477994 is a reply to message #1472953] Tue, 18 November 2014 09:32 Go to previous message
Bernhard Anzeletti is currently offline Bernhard AnzelettiFriend
Messages: 17
Registered: July 2011
Location: Austria
Junior Member
Filed under
https://bugs.eclipse.org/bugs/show_bug.cgi?id=452556
as good as I could.

[Updated on: Thu, 20 November 2014 18:06]

Report message to a moderator

Previous Topic:CDO : Reflective or Dynamic feature delegation ?
Next Topic:[xcore] creating an instance of Map.Entry
Goto Forum:
  


Current Time: Sun Aug 18 19:30:44 GMT 2019

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

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

Back to the top