Using ColorCellEditor [message #156221] |
Thu, 18 October 2007 10:35 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Stefan Kuhn![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=kuhn%40oio.de) 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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Stefan Kuhn![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=kuhn%40oio.de) 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-----
|
|
|
Powered by
FUDForum. Page generated in 0.03710 seconds