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:
  • ContextGlobalProvider
  • GlobalActionContextImpl
  • Constructor Details

    • ContextGlobalExtenderImpl

      public ContextGlobalExtenderImpl()
  • Method Details

    • get

      public Object get(Object key)
      Specified by:
      get in interface ContextGlobalExtender
    • put

      public Object put(Object key, Object value)
      Specified by:
      put in interface ContextGlobalExtender
    • remove

      public Object remove(Object key)
      Specified by:
      remove in interface ContextGlobalExtender
    • 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 interface org.openide.util.ContextGlobalProvider
      Returns:
      a ProxyLookup that includes the original global context lookup.