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 aContextGlobalExtenderwhich is also aContextGlobalProvider.In order to register
ContextGlobalProviderservice 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:
ContextGlobalProvider,GlobalActionContextImpl
-
-
Constructor Summary
Constructors Constructor Description ContextGlobalExtenderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openide.util.LookupcreateGlobalContext()Returns a ProxyLookup that adds the current extra instance to the global selection returned by Utilities.actionsGlobalContext().Objectget(Object key)Objectput(Object key, Object value)Objectremove(Object key)
-
-
-
Method Detail
-
get
public Object get(Object key)
- Specified by:
getin interfaceContextGlobalExtender
-
put
public Object put(Object key, Object value)
- Specified by:
putin interfaceContextGlobalExtender
-
remove
public Object remove(Object key)
- 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.
-
-