Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » TabbedPropertySheetPage and AdapterFactoryLabelProvider
TabbedPropertySheetPage and AdapterFactoryLabelProvider [message #422554] Tue, 09 September 2008 09: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 13:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30803
Registered: July 2009
Senior Member
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 15: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: Sat Jan 18 18:18:06 GMT 2020

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

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

Back to the top