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