Package org.eclipse.emf.ecp.spi.ui
Interface UIProviderRegistry
-
- All Known Implementing Classes:
UIProviderRegistryImpl
public interface UIProviderRegistry
- Since:
- 1.1
- Author:
- Eike Stepper
-
-
Field Summary
Fields Modifier and Type Field Description static UIProviderRegistry
INSTANCE
This is the Instance to use for theUIProviderRegistry
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UIProvider
getUIProvider(java.lang.Object adaptable)
It the adaptable is ECPProviderAware then theUIProvider
that corresponds to theECPProvider
is returned.UIProvider
getUIProvider(java.lang.String name)
Returns theUIProvider
by its name.java.util.Collection<UIProvider>
getUIProviders()
Returns all knownUIProvider
.boolean
hasUIProviders()
Whether anyUIProvider
are registered.
-
-
-
Field Detail
-
INSTANCE
static final UIProviderRegistry INSTANCE
This is the Instance to use for theUIProviderRegistry
.
-
-
Method Detail
-
getUIProvider
UIProvider getUIProvider(java.lang.Object adaptable)
It the adaptable is ECPProviderAware then theUIProvider
that corresponds to theECPProvider
is returned. Otherwise the AdapterUtil tries to resolve this.- Parameters:
adaptable
- the Object to adapt- Returns:
- the
UIProvider
or null if none was found
-
getUIProvider
UIProvider getUIProvider(java.lang.String name)
Returns theUIProvider
by its name.- Parameters:
name
- the name of the ui provider- Returns:
- the
UIProvider
or null if none was found
-
getUIProviders
java.util.Collection<UIProvider> getUIProviders()
Returns all knownUIProvider
.- Returns:
- the array containing all known
UIProvider
-
hasUIProviders
boolean hasUIProviders()
Whether anyUIProvider
are registered.- Returns:
- true if at least one
UIProvider
is registered, false otherwise
-
-