Changeset 11024 in josm for trunk/src/org
- Timestamp:
- 2016-09-18T20:17:55+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandListMutableTreeNode.java
r8308 r11024 12 12 public class CommandListMutableTreeNode extends DefaultMutableTreeNode { 13 13 14 protected transientPseudoCommand cmd;15 protected int idx;14 protected final PseudoCommand cmd; 15 protected final int idx; 16 16 17 /** 18 * Constructs a new {@code CommandListMutableTreeNode}. 19 * @param cmd command 20 * @param idx index 21 */ 17 22 public CommandListMutableTreeNode(PseudoCommand cmd, int idx) { 18 23 super(new JLabel(cmd.getDescriptionText(), cmd.getDescriptionIcon(), JLabel.HORIZONTAL)); … … 21 26 } 22 27 28 /** 29 * Returns the command. 30 * @return the command 31 */ 23 32 public PseudoCommand getCommand() { 24 33 return cmd; 25 34 } 26 35 36 /** 37 * Returns the index. 38 * @return the index 39 */ 27 40 public int getIndex() { 28 41 return idx;
Note:
See TracChangeset
for help on using the changeset viewer.