[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: How to show Reference's Attributes in Property View?
|
Ed Merks wrote:
> Tobias,
>
> For the GenModel's properties that show Ecore model elements, we show
> the child properties of those in
> GenBaseItemProvider.GenItemPropertyDescriptor like *this*:
>
> @Override
> protected Object createPropertyValueWrapper(Object object,
> Object propertyValue)
> {
> return propertyValue instanceof EModelElement ?
> new PropertyValueWrapper(adapterFactory, object,
> propertyValue, *propertyValue*) :
> super.createPropertyValueWrapper(object, propertyValue);
> }
>
> I'm not sure that answers the GMF question though...
This is _exactly_ what I was looking for. Thank you.
tobias
>
>
> tobias wrote:
>> Hello,
>>
>> is there a way to show a reference's or a child's properties in an
>> element's property view, like it's been in early GMF?
>>
>> Example:
>> Class A
>> String name_a
>> B ref_b
>>
>> Class B
>> String name_b
>>
>> Property View of A:
>> name_a:
>> + ref_b
>> name_b
>>
>>
>> Another question: Can you tell me how to use the "FilterFlags"? Maybe
>> they could be of some use, too, but I couldn't figure out how use them...
>>
>> Regards,
>> tobias
>>