Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Using ColorCellEditor
Using ColorCellEditor [message #156221] Thu, 18 October 2007 10:35 Go to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi All,

I am using the ColorCellEditor to edit one of my property of
type Object. I am able to edit it in property view, but I want to
diaplay the color in that cell of the property view itself, now it
shows some dirty code, after the color is set.

Should I change the data type ,from object to something else..? If yes
which , and how can I show the selected colet in the cell itself?

Thanks for any help Biju
Re: Using ColorCellEditor [message #156275 is a reply to message #156221] Thu, 18 October 2007 12:59 Go to previous messageGo to next message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hmmm, which ColorCellEditor do you mean? More important, where do the
Editor saves the data, in the semantic or notation model? I think you
have to write an edit policy which listens/adapts the emf-model to which
the ColorCellEditor writes and changes the background color accordingly.

- -stefan

biju schrieb:
> Hi All,
>
> I am using the ColorCellEditor to edit one of my property of
> type Object. I am able to edit it in property view, but I want to
> diaplay the color in that cell of the property view itself, now it
> shows some dirty code, after the color is set.
>
> Should I change the data type ,from object to something else..? If
> yes which , and how can I show the selected colet in the cell itself?
>
> Thanks for any help Biju
>
>
>
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHF1jDIYVWjMSpDwwRAspxAKDrQ9dEPZ1ExsDI1kgSIOu51wh7zACg swS/
YSbUfnBfKzf6QkK6reTTEic=
=AIXm
-----END PGP SIGNATURE-----
Re: Using ColorCellEditor [message #156298 is a reply to message #156275] Thu, 18 October 2007 14:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi SKuhn,

Thanks for your reply,

I am using org.eclipse.jface.viewers.ColorCellEditor , My
editor saves data in semantic model , If I have to write an edit policy
which edit policy should I use?

Thanks Biju
SKuhn wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hmmm, which ColorCellEditor do you mean? More important, where do the
> Editor saves the data, in the semantic or notation model? I think you
> have to write an edit policy which listens/adapts the emf-model to which
> the ColorCellEditor writes and changes the background color accordingly.
>
> - -stefan
>
> biju schrieb:
>> Hi All,
>>
>> I am using the ColorCellEditor to edit one of my property of
>> type Object. I am able to edit it in property view, but I want to
>> diaplay the color in that cell of the property view itself, now it
>> shows some dirty code, after the color is set.
>>
>> Should I change the data type ,from object to something else..? If
>> yes which , and how can I show the selected colet in the cell itself?
>>
>> Thanks for any help Biju
>>
>>
>>
>>
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHF1jDIYVWjMSpDwwRAspxAKDrQ9dEPZ1ExsDI1kgSIOu51wh7zACg swS/
> YSbUfnBfKzf6QkK6reTTEic=
> =AIXm
> -----END PGP SIGNATURE-----
Re: Using ColorCellEditor [message #156306 is a reply to message #156298] Thu, 18 October 2007 14:46 Go to previous message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

depends on what it should do. Take a look at the GEF documentation or
even better the EMF/GEF redbook from IBM.

- -stefan

biju schrieb:
> Hi SKuhn,
>
> Thanks for your reply,
>
> I am using org.eclipse.jface.viewers.ColorCellEditor , My
> editor saves data in semantic model , If I have to write an edit policy
> which edit policy should I use?
>
> Thanks Biju
> SKuhn wrote:
> hmmm, which ColorCellEditor do you mean? More important, where do the
> Editor saves the data, in the semantic or notation model? I think you
> have to write an edit policy which listens/adapts the emf-model to which
> the ColorCellEditor writes and changes the background color accordingly.
>
> -stefan
>
> biju schrieb:
>>>> Hi All,
>>>>
>>>> I am using the ColorCellEditor to edit one of my property of
>>>> type Object. I am able to edit it in property view, but I want to
>>>> diaplay the color in that cell of the property view itself, now it
>>>> shows some dirty code, after the color is set.
>>>>
>>>> Should I change the data type ,from object to something else..? If
>>>> yes which , and how can I show the selected colet in the cell itself?
>>>>
>>>> Thanks for any help Biju
>>>>
>>>>
>>>>
>>>>
>>>>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHF3HeIYVWjMSpDwwRAm+LAJ0XuBVQe/cQSC56nT39QaOkIsebVACg yiJZ
J2n4pxtb++VpZZqVzsvt/HM=
=TmtH
-----END PGP SIGNATURE-----
Previous Topic:Name not being updated
Next Topic:elements not getting deleted
Goto Forum:
  


Current Time: Thu Jun 27 21:06:31 GMT 2024

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

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

Back to the top