Changeset 11024 in josm for trunk/src


Ignore:
Timestamp:
2016-09-18T20:17:55+02:00 (3 years ago)
Author:
Don-vip
Message:

unit test, javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/CommandListMutableTreeNode.java

    r8308 r11024  
    1212public class CommandListMutableTreeNode extends DefaultMutableTreeNode {
    1313
    14     protected transient PseudoCommand cmd;
    15     protected int idx;
     14    protected final PseudoCommand cmd;
     15    protected final int idx;
    1616
     17    /**
     18     * Constructs a new {@code CommandListMutableTreeNode}.
     19     * @param cmd command
     20     * @param idx index
     21     */
    1722    public CommandListMutableTreeNode(PseudoCommand cmd, int idx) {
    1823        super(new JLabel(cmd.getDescriptionText(), cmd.getDescriptionIcon(), JLabel.HORIZONTAL));
     
    2126    }
    2227
     28    /**
     29     * Returns the command.
     30     * @return the command
     31     */
    2332    public PseudoCommand getCommand() {
    2433        return cmd;
    2534    }
    2635
     36    /**
     37     * Returns the index.
     38     * @return the index
     39     */
    2740    public int getIndex() {
    2841        return idx;
Note: See TracChangeset for help on using the changeset viewer.