Class AbstractEditorAction

    • Field Detail

      • context

        protected org.openide.util.Lookup context
        Lookup
      • result

        protected org.openide.util.Lookup.Result<SVGEditorCookie> result
        Lookup.Result
      • editorCookieLookupListener

        protected org.openide.util.LookupListener editorCookieLookupListener
        Lookup Listener
    • Constructor Detail

      • AbstractEditorAction

        public AbstractEditorAction()
        Creates a new instance of AbstractEditorAction By default it listen to global lookup context
      • AbstractEditorAction

        public AbstractEditorAction​(org.openide.util.Lookup context)
        Creates a new instance of AbstractEditorAction
        Parameters:
        context - Lookup
    • Method Detail

      • editorCookieLookupListenerResultChanged

        protected void editorCookieLookupListenerResultChanged​(org.openide.util.LookupEvent evt)
        Listen for the presence or absence of SVGEditorCookie on the lookup and set the enabled state for this action.
        Parameters:
        evt - the Event
      • getHelpCtx

        public org.openide.util.HelpCtx getHelpCtx()
        Overidden to return HelpCtx.DEFAULT_HELP
        Specified by:
        getHelpCtx in interface org.openide.util.HelpCtx.Provider
        Specified by:
        getHelpCtx in class org.openide.util.actions.SystemAction
      • asynchronous

        protected boolean asynchronous()
        Overidden to return false
        Overrides:
        asynchronous in class org.openide.util.actions.CallableSystemAction