Class FeatureInstaller


  • public class FeatureInstaller
    extends Object
    Adds a plug-in to the JUMP Workbench as a menu item.
    • Constructor Detail

      • FeatureInstaller

        public FeatureInstaller​(WorkbenchContext workbenchContext)
    • Method Detail

      • createLayersSelectedCheck

        public MultiEnableCheck createLayersSelectedCheck()
        Deprecated.
        Use the EnableCheckFactory methods instead
      • createOneLayerSelectedCheck

        public MultiEnableCheck createOneLayerSelectedCheck()
        Deprecated.
        Use the EnableCheckFactory methods instead
      • createVectorsExistCheck

        public MultiEnableCheck createVectorsExistCheck()
        Deprecated.
        Use the EnableCheckFactory methods instead
      • createFenceExistsCheck

        public MultiEnableCheck createFenceExistsCheck()
        Deprecated.
        Use the EnableCheckFactory methods instead
      • addMenuSeparator

        public void addMenuSeparator​(String menu)
      • addMenuSeparator

        public void addMenuSeparator​(String[] menuPath)
      • addMenuSeparator

        public void addMenuSeparator​(JMenu menu)
      • addLayerViewMenuItem

        public void addLayerViewMenuItem​(PlugIn executable,
                                         String menuName,
                                         String menuItemName)
      • addLayerNameViewMenuItem

        public void addLayerNameViewMenuItem​(PlugIn executable,
                                             String menuName,
                                             String menuItemName)
      • addLayerViewMenuItem

        public void addLayerViewMenuItem​(PlugIn executable,
                                         String[] menuPath,
                                         String menuItemName)
        Add a menu item to the main menu that is enabled only if the active internal frame is a LayerViewPanelProxy.
      • addLayerNameViewMenuItem

        public void addLayerNameViewMenuItem​(PlugIn executable,
                                             String[] menuPath,
                                             String menuItemName)
        Add a menu item to the main menu that is enabled only if the active internal frame is a LayerViewPanelProxy and a LayerNamePanelProxy.
      • addMainMenuItem

        public void addMainMenuItem​(PlugIn executable,
                                    String[] menuPath,
                                    String menuItemName,
                                    boolean checkBox,
                                    Icon icon,
                                    EnableCheck enableCheck)
        Parameters:
        menuPath - separate items with slashes; items will be created if they do not already exist
        menuActionListener - listener for the menu (not the menu item); useful for setting the menu item's enabled state; can be set to null
        checkBox - whether to create a JCheckBoxMenuItem or a JMenuItem
        See Also:
        GUIUtil#toSmallIcon
      • addPopupMenuItem

        public void addPopupMenuItem​(JPopupMenu popupMenu,
                                     PlugIn executable,
                                     String menuItemName,
                                     boolean checkBox,
                                     Icon icon,
                                     EnableCheck enableCheck)
        Parameters:
        enableCheck - null to leave unspecified
      • menuBarMenu

        public JMenu menuBarMenu​(String childName)
        Returns:
        the menu with the given name, or null if no such menu exists