Interface CodeEditorBase.PopupMenuBuilder

  • Enclosing class:
    CodeEditorBase
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface CodeEditorBase.PopupMenuBuilder
    Interface implemented by code editor users to create custom popup menus.
    • Method Detail

      • buildMenu

        javax.swing.JPopupMenu buildMenu​(CodeEditorBase editor,
                                         javax.swing.JPopupMenu menu)
        Called to create the popup menu for the current editor state.
        Parameters:
        editor - the editor component which will display a menu
        menu - a default menu that can be extended
        Returns:
        the menu to display, or null