Class ToolAdapterActionRegistrar


  • public class ToolAdapterActionRegistrar
    extends Object
    Helper class for creating menu entries for tool adapter operators. The inner runnable class should be invoked when the IDE starts, and will register the available adapters as menu actions.
    • Constructor Detail

      • ToolAdapterActionRegistrar

        public ToolAdapterActionRegistrar()
    • Method Detail

      • getDefaultMenuLocation

        public static String getDefaultMenuLocation()
      • registerOperatorMenu

        public static void registerOperatorMenu​(ToolAdapterOperatorDescriptor operator)
        Creates a menu entry in the default menu location (Tools > External Tools) for the given adapter operator.
        Parameters:
        operator - The operator descriptor
      • registerOperatorMenu

        public static void registerOperatorMenu​(ToolAdapterOperatorDescriptor operator,
                                                boolean hasChanged)
        Creates a menu entry in the given menu location for the given adapter operator.
        Parameters:
        operator - The operator descriptor
        hasChanged - Flag that indicates if the descriptor has changed (true) or is new (false)