TabbedPropertySheetPage and AdapterFactoryLabelProvider [message #422554] |
Tue, 09 September 2008 09:53 |
Eclipse User |
|
|
|
Originally posted by: andreas-scharf.gmx.de
Hi,
I'm trying to use the nice AdapterFactoryLabelProvider with the
TabbedPropertySheetPage to display the titlebar. Normally the
ILabelProvider is defined in the TabbedPropertySheetPage extension point
but I in case of AdapterFactoryLabelProvider I have to pass the
AdapterFactory in the constructor. I was thinking of overriding the
initContributor method in TabbedPropertySheetPage to not get the
labelProvider from the registry but this method is private.
Any ideas?
Thx,
Andreas
|
|
|
|
Re: TabbedPropertySheetPage and AdapterFactoryLabelProvider [message #422569 is a reply to message #422563] |
Tue, 09 September 2008 15:14 |
Eclipse User |
|
|
|
Originally posted by: andreas-scharf.gmx.de
Thx Ed,
works perfectly!
Ed Merks schrieb:
> Andreas,
>
> It's not really an EMF question. Everything seems to be geared toward
> keeping you from doing much of anything to specialize the implementation...
>
> If you use new
> ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Reg istry.INSTANCE)
> it will find registered item providers automatically, so maybe you can
> have a specialized label provider that takes that approach...
>
>
> Andreas Scharf wrote:
>> Hi,
>>
>> I'm trying to use the nice AdapterFactoryLabelProvider with the
>> TabbedPropertySheetPage to display the titlebar. Normally the
>> ILabelProvider is defined in the TabbedPropertySheetPage extension point
>> but I in case of AdapterFactoryLabelProvider I have to pass the
>> AdapterFactory in the constructor. I was thinking of overriding the
>> initContributor method in TabbedPropertySheetPage to not get the
>> labelProvider from the registry but this method is private.
>>
>> Any ideas?
>>
>> Thx,
>> Andreas
|
|
|
Powered by
FUDForum. Page generated in 0.03209 seconds