Skip to main content



      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 06:10 Go to next message
Eclipse UserFriend
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 08:31 Go to previous messageGo to next message
Eclipse UserFriend
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 13:08 Go to previous messageGo to next message
Eclipse UserFriend

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 03:07 Go to previous messageGo to next message
Eclipse UserFriend
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 04:32 Go to previous message
Eclipse UserFriend
Filed under
https://bugs.eclipse.org/bugs/show_bug.cgi?id=452556
as good as I could.

[Updated on: Thu, 20 November 2014 13:06] by Moderator

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


Current Time: Tue Jul 08 03:03:10 EDT 2025

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

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

Back to the top