Class E4PartWrappingAdapterDelegator
- java.lang.Object
-
- org.palladiosimulator.commons.ui.e4.E4PartWrappingAdapterDelegator
-
- All Implemented Interfaces:
IAdapterFactory
public class E4PartWrappingAdapterDelegator extends Object implements IAdapterFactory
This class acts as intermediate adapter factory for Eclipse's E4PartWrapper. Unfortunately, large parts of the IDE-code base relies on the legacy view framework, especially, the properties view. While there are a couple of E3E4 compatibility mechanisms in place, AdapterFactories are only queried based on the E4WrapperPart. This factory provides an adapter based on the wrapped view part. It looks up the according E4 view, and tries to retrieve the required adapter for it. It is currently registered to provide adapters for- org.eclipse.ui.views.properties.IPropertySheetPage
- org.eclipse.ui.views.properties.IPropertySourceProvider
- org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor
- org.eclipse.eef.properties.ui.api.IEEFTabbedPropertySheetPageContributor
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADAPTER_FACTORY_ADAPTED_OBJECT
static String
ADAPTER_FACTORY_ADAPTER
static String
ADAPTER_FACTORY_ADAPTER_TYPE
static String
ADAPTER_FACTORY_EXTENSION_POINT
-
Fields inherited from interface org.eclipse.core.runtime.IAdapterFactory
SERVICE_PROPERTY_ADAPTABLE_CLASS, SERVICE_PROPERTY_ADAPTER_NAMES
-
-
Constructor Summary
Constructors Constructor Description E4PartWrappingAdapterDelegator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getAdapter(Object adaptableObject, Class<T> adapterType)
Class<?>[]
getAdapterList()
-
-
-
Field Detail
-
ADAPTER_FACTORY_EXTENSION_POINT
public static final String ADAPTER_FACTORY_EXTENSION_POINT
- See Also:
- Constant Field Values
-
ADAPTER_FACTORY_ADAPTED_OBJECT
public static final String ADAPTER_FACTORY_ADAPTED_OBJECT
- See Also:
- Constant Field Values
-
ADAPTER_FACTORY_ADAPTER
public static final String ADAPTER_FACTORY_ADAPTER
- See Also:
- Constant Field Values
-
ADAPTER_FACTORY_ADAPTER_TYPE
public static final String ADAPTER_FACTORY_ADAPTER_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAdapter
public <T> T getAdapter(Object adaptableObject, Class<T> adapterType)
- Specified by:
getAdapter
in interfaceIAdapterFactory
-
getAdapterList
public Class<?>[] getAdapterList()
- Specified by:
getAdapterList
in interfaceIAdapterFactory
-
-