public interface ExtensionPoint<T>
com.intellij.testFramework.PlatformTestUtil#maskExtensions
Modifier and Type | Interface and Description |
---|---|
static class |
ExtensionPoint.Kind |
Modifier and Type | Method and Description |
---|---|
void |
addExtensionPointListener(ExtensionPointChangeListener listener,
boolean invokeForLoadedExtensions,
Disposable parentDisposable) |
void |
addExtensionPointListener(ExtensionPointListener<T> listener)
|
void |
addExtensionPointListener(ExtensionPointListener<T> listener,
boolean invokeForLoadedExtensions,
Disposable parentDisposable) |
java.util.stream.Stream<T> |
extensions() |
java.lang.String |
getClassName() |
default T |
getExtension()
Deprecated.
Use another solution, because this method instantiates all extensions.
|
java.util.List<T> |
getExtensionList() |
T [] |
getExtensions()
Prefer to use
getExtensionList() . |
java.lang.String |
getName() |
PluginDescriptor |
getPluginDescriptor() |
boolean |
hasAnyExtensions() |
default boolean |
hasExtension(T extension)
Deprecated.
Use another solution, because this method instantiates all extensions.
|
boolean |
isDynamic() |
void |
registerExtension(T extension)
Deprecated.
Use
com.intellij.testFramework.PlatformTestUtil#maskExtensions or registerExtension(Object, Disposable) . |
void |
registerExtension(T extension,
Disposable parentDisposable) |
void |
registerExtension(T extension,
LoadingOrder order)
Deprecated.
Use
com.intellij.testFramework.PlatformTestUtil#maskExtensions or registerExtension(Object, LoadingOrder, Disposable) . |
void |
registerExtension(T extension,
LoadingOrder order,
Disposable parentDisposable)
Use
com.intellij.testFramework.PlatformTestUtil#maskExtensions
to register extension as first or to completely replace existing extensions in tests. |
void |
removeExtensionPointListener(ExtensionPointListener<T> extensionPointListener) |
void |
reset() |
void |
unregisterExtension(java.lang.Class<? extends T> extensionClass)
Unregisters an extension of the specified type.
|
void |
unregisterExtension(T extension)
Deprecated.
Use another solution to unregister not applicable extension, because this method instantiates all extensions.
|
boolean |
unregisterExtensions(java.util.function.BiPredicate<? super java.lang.String,? super ExtensionComponentAdapter> extensionClassFilter,
boolean stopAfterFirstMatch)
Unregisters extensions for which the specified predicate returns false.
|
boolean |
unregisterExtensions(java.util.function.BiPredicate<? super java.lang.String,? super ExtensionComponentAdapter> extensionClassFilter,
boolean stopAfterFirstMatch,
java.util.List<java.lang.Runnable> listenerCallbacks)
Unregisters extensions for which the specified predicate returns false and collects the callables for listener invocation into the given list
so that listeners can be called later.
|
void |
unregisterExtensions(java.util.function.Predicate<? super T> extension)
Deprecated.
Use another solution to unregister not applicable extension, because this method instantiates all extensions.
|
java.lang.String getName()
@Deprecated void registerExtension(T extension)
com.intellij.testFramework.PlatformTestUtil#maskExtensions
or registerExtension(Object, Disposable)
.@Deprecated void registerExtension(T extension, LoadingOrder order)
com.intellij.testFramework.PlatformTestUtil#maskExtensions
or registerExtension(Object, LoadingOrder, Disposable)
.void registerExtension(T extension, Disposable parentDisposable)
void registerExtension(T extension, LoadingOrder order, Disposable parentDisposable)
com.intellij.testFramework.PlatformTestUtil#maskExtensions
to register extension as first or to completely replace existing extensions in tests.T [] getExtensions()
getExtensionList()
.java.util.List<T> getExtensionList()
java.util.stream.Stream<T> extensions()
boolean hasAnyExtensions()
@Deprecated default T getExtension()
@Deprecated default boolean hasExtension(T extension)
@Deprecated void unregisterExtension(T extension)
@Deprecated void unregisterExtensions(java.util.function.Predicate<? super T> extension)
void unregisterExtension(java.lang.Class<? extends T> extensionClass)
ExtensionNotApplicableException
instead.boolean unregisterExtensions(java.util.function.BiPredicate<? super java.lang.String,? super ExtensionComponentAdapter> extensionClassFilter, boolean stopAfterFirstMatch)
ExtensionNotApplicableException
instead.boolean unregisterExtensions(java.util.function.BiPredicate<? super java.lang.String,? super ExtensionComponentAdapter> extensionClassFilter, boolean stopAfterFirstMatch, java.util.List<java.lang.Runnable> listenerCallbacks)
@Deprecated void addExtensionPointListener(ExtensionPointListener<T> listener)
void addExtensionPointListener(ExtensionPointListener<T> listener, boolean invokeForLoadedExtensions, Disposable parentDisposable)
void addExtensionPointListener(ExtensionPointChangeListener listener, boolean invokeForLoadedExtensions, Disposable parentDisposable)
void removeExtensionPointListener(ExtensionPointListener<T> extensionPointListener)
void reset()
java.lang.String getClassName()
boolean isDynamic()
PluginDescriptor getPluginDescriptor()