Changeset 10599 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2016-07-23T02:08:50+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/Command.java
r10467 r10599 37 37 * 38 38 * @author imi 39 * @since 21 (creation) 40 * @since 10599 (signature) 39 41 */ 40 public abstract class Command extends PseudoCommand {42 public abstract class Command implements PseudoCommand { 41 43 42 44 private static final class CloneVisitor extends AbstractVisitor { -
trunk/src/org/openstreetmap/josm/command/PseudoCommand.java
r8447 r10599 12 12 * as subcommand of real commands but it is just an empty shell and can not be 13 13 * executed or undone. 14 * @since 3262 (creation) 15 * @since 10599 (functional interface) 14 16 */ 15 public abstract classPseudoCommand {17 public interface PseudoCommand { 16 18 17 19 /** … … 19 21 * @return description text representing this command 20 22 */ 21 public abstractString getDescriptionText();23 String getDescriptionText(); 22 24 23 25 /** … … 25 27 * @return descriptive icon of this command 26 28 */ 27 publicIcon getDescriptionIcon() {29 default Icon getDescriptionIcon() { 28 30 return null; 29 31 } … … 33 35 * @return primitives that take part in this command 34 36 */ 35 public abstractCollection<? extends OsmPrimitive> getParticipatingPrimitives();37 Collection<? extends OsmPrimitive> getParticipatingPrimitives(); 36 38 37 39 /** … … 40 42 * @return the subcommands, null if there are no child commands 41 43 */ 42 publicCollection<PseudoCommand> getChildren() {44 default Collection<PseudoCommand> getChildren() { 43 45 return null; 44 46 }
Note: See TracChangeset
for help on using the changeset viewer.