Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/gui/PopupMenuHandler.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/PopupMenuHandler.java
r7937 r8510 26 26 // Managed menu 27 27 private final JPopupMenu menu; 28 28 29 29 /** 30 30 * Constructs a new {@code RelationActionMenuHandler} for the specified popup menu. 31 * 31 * 32 32 * @param menu The menu to be managed 33 33 */ … … 46 46 /** 47 47 * Appends a new menu item to the end of the menu which dispatches the specified <code>Action</code> object. 48 * 48 * 49 49 * @param a the <code>Action</code> to add to the menu 50 50 * @return the new menu item … … 63 63 /** 64 64 * Removes the menu item which dispatches the specified <code>Action</code> object. 65 * 65 * 66 66 * @param a the <code>Action</code> to remove from the menu 67 67 * @see JPopupMenu#remove(int) … … 73 73 } 74 74 MenuElement[] elements = menu.getSubElements(); 75 for (int i =0; i<elements.length; i++) {75 for (int i = 0; i < elements.length; i++) { 76 76 if (elements[i] instanceof JMenuItem) { 77 77 if (((JMenuItem) elements[i]).getAction() == a) { … … 103 103 menu.removePopupMenuListener(l); 104 104 } 105 105 106 106 /** 107 107 * Returns all enabled primitive actions. … … 112 112 return Collections.unmodifiableCollection(primitiveActions); 113 113 } 114 114 115 115 /** 116 116 * Specifies the working set of primitives for all primitive actions.
Note:
See TracChangeset
for help on using the changeset viewer.