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 aContextGlobalExtender
which is also aContextGlobalProvider
.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:
ContextGlobalProvider
,GlobalActionContextImpl
-
-
Constructor Summary
Constructors Constructor Description ContextGlobalExtenderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openide.util.Lookup
createGlobalContext()
Returns a ProxyLookup that adds the current extra instance to the global selection returned by Utilities.actionsGlobalContext().Object
get(Object key)
Object
put(Object key, Object value)
Object
remove(Object key)
-
-
-
Method Detail
-
get
public Object get(Object key)
- Specified by:
get
in interfaceContextGlobalExtender
-
put
public Object put(Object key, Object value)
- Specified by:
put
in interfaceContextGlobalExtender
-
remove
public Object remove(Object key)
- Specified by:
remove
in 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:
createGlobalContext
in interfaceorg.openide.util.ContextGlobalProvider
- Returns:
- a ProxyLookup that includes the original global context lookup.
-
-