Mechanism to provide IAdapterFactory for classes, not instances? [message #988488] |
Fri, 30 November 2012 03:23  |
Eclipse User |
|
|
|
I am using Eclipse's IAdapterFactory - IAdapterManager mechanism to provide some decentral Adapters for custom classes.
Now the IAdapterFactory is usually retrieved by doing.
Platform.getAdapterManager().getAdapter(OBJECT adaptable, class adapterType);
This mechanism is great, but unfortunatly requires an INSTANCE of an adaptable Object, to retrieve a fitting adapter.
Sometimes, e.g. when doing some preparations for displaying Objects - I do not have any instances of adoptable objects yet. i only know the objects class I whant to display.
Question:
Is there such a mechanism in Eclipse, which would allow to register an IAdapterFactory for CLASSES (not instances) ?
So that one could do:
Platform.getAdapterManager().getAdapter(CLASS adaptable, class adapterType);
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11793 seconds