Skip to main content



      Home
Home » Modeling » EMF » TabbedPropertySheetPage and AdapterFactoryLabelProvider
TabbedPropertySheetPage and AdapterFactoryLabelProvider [message #422554] Tue, 09 September 2008 05:53 Go to next message
Eclipse UserFriend
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 #422563 is a reply to message #422554] Tue, 09 September 2008 09:05 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: TabbedPropertySheetPage and AdapterFactoryLabelProvider [message #422569 is a reply to message #422563] Tue, 09 September 2008 11:14 Go to previous message
Eclipse UserFriend
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
Previous Topic:childCreationExtenders
Next Topic:[CDO] and EFS
Goto Forum:
  


Current Time: Sun Jul 06 11:16:20 EDT 2025

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

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

Back to the top