PropertySource [message #169013] |
Mon, 21 February 2005 04:50  |
Eclipse User |
|
|
|
Originally posted by: seb01016.fh-hagenber.at
Hello!
I use EMF and GEF in combination to create my own editor. I have added
serveral Property Sources that implement IPropertySource. So I can see the
properties in the default property view. If I use code generation
mechanism of EMF it generates classes (some Adapters in EMF.Edit) which
create entries in the property sheet too. I am interested in the editor
for collections. It offers a property entry, that has a button, which
opens a dialog, where the property values can be edited.
So my question is, how can i create such a PropertyDescriptor. It sould
allow a simple string, which sould not be editable and on the right hand
side a button, where I am able to open a dialog where I can edit the value
of the property.
Hopefully you can understand what I want to achieve.
thx in advance
Hannes
|
|
|
|
Re: PropertySource [message #169093 is a reply to message #169029] |
Mon, 21 February 2005 11:03  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Can't you just reused EMF.Edit's celleditor?
"Schoenboeck" <seb01016@fh-hag.at> escreveu na mensagem
news:cvcndi$jls$1@www.eclipse.org...
> Hi!
>
> I have already found the solution. (Used my own PropertyDescriptor, that
> uses a DialogCellEditor)
>
> thx
>
> Schoenboeck wrote:
>
>> Hello!
>
>> I use EMF and GEF in combination to create my own editor. I have added
>> serveral Property Sources that implement IPropertySource. So I can see
>> the properties in the default property view. If I use code generation
>> mechanism of EMF it generates classes (some Adapters in EMF.Edit) which
>> create entries in the property sheet too. I am interested in the editor
>> for collections. It offers a property entry, that has a button, which
>> opens a dialog, where the property values can be edited.
>
>> So my question is, how can i create such a PropertyDescriptor. It sould
>> allow a simple string, which sould not be editable and on the right hand
>> side a button, where I am able to open a dialog where I can edit the
>> value of the property.
>
>> Hopefully you can understand what I want to achieve.
>
>> thx in advance
>
>> Hannes
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04027 seconds