source: josm/trunk/src/org/openstreetmap/josm/gui/dialogs/CommandListMutableTreeNode.java@ 4864

Last change on this file since 4864 was 3479, checked in by jttt, 14 years ago

cosmetics

  • Property svn:eol-style set to native
File size: 675 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.dialogs;
3
4import javax.swing.tree.DefaultMutableTreeNode;
5
6import org.openstreetmap.josm.command.PseudoCommand;
7
8/**
9 * MutableTreeNode implementation for Command list JTree
10 */
11public class CommandListMutableTreeNode extends DefaultMutableTreeNode {
12
13 protected PseudoCommand cmd;
14 protected int idx;
15
16 public CommandListMutableTreeNode(PseudoCommand cmd, int idx) {
17 super(cmd.getDescription());
18 this.cmd = cmd;
19 this.idx = idx;
20 }
21
22 public PseudoCommand getCommand() {
23 return cmd;
24 }
25
26 public int getIndex() {
27 return idx;
28 }
29}
Note: See TracBrowser for help on using the repository browser.