Module org.jpo

Class RenameMenuItems

java.lang.Object
org.jpo.gui.swing.RenameMenuItems

public class RenameMenuItems extends Object
static class to create a collection of Rename menu items.
  • Method Details

    • getRenameMenuItems

      public static Iterable<JComponent> getRenameMenuItems(Collection<SortableDefaultMutableTreeNode> popupNodes)
      Returns a collection of rename menu items for various popup menus to fix filenames. Will only suggest to fix underscores and space characters if the list contains only a single item.
      Parameters:
      popupNodes - The list of nodes to rename
      Returns:
      a list of items to add to a JMenu or JPopUpMenu