java.lang.Object
org.jpo.gui.swing.RenameMenuItems
static class to create a collection of Rename menu items.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Iterable<JComponent>
getRenameMenuItems
(Collection<SortableDefaultMutableTreeNode> popupNodes) Returns a collection of rename menu items for various popup menus to fix filenames.
-
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
-