Class 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 Detail

      • ContextGlobalExtenderImpl

        public ContextGlobalExtenderImpl()
    • Method Detail

      • 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.