public final class UIProviderRegistryImpl extends ElementRegistry<UIProvider,ECPObserver> implements UIProviderRegistry
| Modifier and Type | Field and Description |
|---|---|
static UIProviderRegistryImpl |
INSTANCE
This is the Instance used by the
UIProviderRegistry for providing its instance. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doActivate() |
protected void |
doDeactivate() |
UIProvider |
getUIProvider(Object adaptable)
It the adaptable is ECPProviderAware then the
UIProvider that corresponds to the
ECPProvider is
returned. |
UIProvider |
getUIProvider(String name)
Returns the
UIProvider by its name. |
Collection<UIProvider> |
getUIProviders()
Returns all known
UIProvider. |
boolean |
hasUIProviders()
Whether any
UIProvider are registered. |
protected void |
notifyObservers(Collection<UIProvider> oldElements,
Collection<UIProvider> newElements)
Notifies observers that the elements in the registry have changed.
|
addResolveListener, descriptorChanged, getElementName, removeResolveListeneraddObserver, changeElements, disposed, doChangeElements, elementsChanged, getElement, getElementCount, getElementNames, getElements, hasElement, hasElements, isDisposingElement, isRemoveDisposedElements, removeObserveractivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerpublic static final UIProviderRegistryImpl INSTANCE
UIProviderRegistry for providing its instance.public UIProvider getUIProvider(Object adaptable)
UIProvider that corresponds to the
ECPProvider is
returned. Otherwise the AdapterUtil tries to resolve this.getUIProvider in interface UIProviderRegistryadaptable - the Object to adaptUIProvider or null if none was foundpublic UIProvider getUIProvider(String name)
UIProvider by its name.getUIProvider in interface UIProviderRegistryname - the name of the ui providerUIProvider or null if none was foundpublic Collection<UIProvider> getUIProviders()
UIProvider.getUIProviders in interface UIProviderRegistryUIProviderpublic boolean hasUIProviders()
UIProvider are registered.hasUIProviders in interface UIProviderRegistryUIProvider is registered, false otherwiseprotected void notifyObservers(Collection<UIProvider> oldElements, Collection<UIProvider> newElements) throws Exception
RegistrynotifyObservers in class Registry<UIProvider,ECPObserver>oldElements - The old collection of elementsnewElements - The new collection of elementsExceptionprotected void doActivate()
throws Exception
doActivate in class org.eclipse.net4j.util.lifecycle.LifecycleExceptionCopyright © 2018. All rights reserved.