Last change
on this file since 3336 was 3262, checked in by bastiK, 14 years ago |
extended command list dialog; added inspection panel
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.command;
|
---|
3 |
|
---|
4 | import java.util.Collection;
|
---|
5 | import java.util.HashMap;
|
---|
6 | import java.util.Map;
|
---|
7 |
|
---|
8 | import javax.swing.tree.DefaultMutableTreeNode;
|
---|
9 | import javax.swing.tree.MutableTreeNode;
|
---|
10 |
|
---|
11 | import org.openstreetmap.josm.data.osm.OsmPrimitive;
|
---|
12 | import org.openstreetmap.josm.data.osm.PrimitiveData;
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * PseudoCommand is a reduced form of a command. It can be presented in a tree view
|
---|
16 | * as subcommand of real commands but it is just an empty shell and can not be
|
---|
17 | * executed or undone.
|
---|
18 | */
|
---|
19 | abstract public class PseudoCommand {
|
---|
20 | /**
|
---|
21 | * Provide a description that can be presented in a list or tree view.
|
---|
22 | */
|
---|
23 | abstract public Object getDescription();
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * Return the primitives that take part in this command.
|
---|
27 | */
|
---|
28 | abstract public Collection<? extends OsmPrimitive> getParticipatingPrimitives();
|
---|
29 |
|
---|
30 | /**
|
---|
31 | * Returns the subcommands of this command.
|
---|
32 | * Override for subclasses that have child commands.
|
---|
33 | * @return the subcommands, null if there are no child commands
|
---|
34 | */
|
---|
35 | public Collection<PseudoCommand> getChildren() {
|
---|
36 | return null;
|
---|
37 | }
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.