Package org.esa.snap.rcp.util
Class ContextGlobalExtenderImpl
java.lang.Object
org.esa.snap.rcp.util.ContextGlobalExtenderImpl
- All Implemented Interfaces:
ContextGlobalExtender,org.openide.util.ContextGlobalProvider
- Direct Known Subclasses:
SnapApp.ActionContextExtender
public class ContextGlobalExtenderImpl
extends Object
implements org.openide.util.ContextGlobalProvider, ContextGlobalExtender
Default implementation of a
ContextGlobalExtender which is also a ContextGlobalProvider.
In order to register ContextGlobalProvider service use the following code:
@ServiceProvider(
service = ContextGlobalProvider.class,
supersedes = "org.netbeans.modules.openide.windows.GlobalActionContextImpl"
)
public class MyGlobalActionContextImpl extends ContextGlobalExtenderImpl {
}
- Since:
- 2.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ContextGlobalExtenderImpl
public ContextGlobalExtenderImpl()
-
-
Method Details
-
get
- Specified by:
getin interfaceContextGlobalExtender
-
put
- Specified by:
putin interfaceContextGlobalExtender
-
remove
- Specified by:
removein interfaceContextGlobalExtender
-
createGlobalContext
public org.openide.util.Lookup createGlobalContext()Returns a ProxyLookup that adds the current extra instance to the global selection returned by Utilities.actionsGlobalContext().- Specified by:
createGlobalContextin interfaceorg.openide.util.ContextGlobalProvider- Returns:
- a ProxyLookup that includes the original global context lookup.
-