Changeset 11978 in josm for trunk/src/org


Ignore:
Timestamp:
2017-04-22T21:14:24+02:00 (7 years ago)
Author:
Don-vip
Message:

improve coverage and javadoc of enum classes for package actions

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/MoveAction.java

    r10409 r11978  
    2828public class MoveAction extends JosmAction {
    2929
    30     public enum Direction { UP, LEFT, RIGHT, DOWN }
     30    /**
     31     * Move direction.
     32     */
     33    public enum Direction {
     34        /** Move up */
     35        UP,
     36        /** Move left */
     37        LEFT,
     38        /** Move right */
     39        RIGHT,
     40        /** Move down */
     41        DOWN
     42    }
    3143
    3244    private final Direction myDirection;
  • trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java

    r11921 r11978  
    495495    }
    496496
    497     private enum Direction {
     497    enum Direction {
    498498        RIGHT, UP, LEFT, DOWN;
    499499        public Direction changeBy(int directionChange) {
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java

    r11713 r11978  
    6060    private boolean drawTargetHighlight;
    6161
    62     private enum DeleteMode {
     62    enum DeleteMode {
    6363        none(/* ICON(cursor/modifier/) */ "delete"),
    6464        segment(/* ICON(cursor/modifier/) */ "delete_segment"),
     
    7575        }
    7676
     77        /**
     78         * Returns the mode cursor.
     79         * @return the mode cursor
     80         */
    7781        public Cursor cursor() {
    7882            return c;
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java

    r11913 r11978  
    5959    private static final String CROSSHAIR = "crosshair";
    6060
    61     private enum State {
     61    enum State {
    6262        SELECTING, IMPROVING
    6363    }
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java

    r11713 r11978  
    120120    // @formatter:on
    121121
    122     private enum Mode {
     122    enum Mode {
    123123        DRAGGING, NORMAL
    124124    }
     
    615615    }
    616616
    617     private enum Modifier {
     617    enum Modifier {
    618618        CTRL('c'),
    619619        ALT('a'),
  • trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

    r11913 r11978  
    8686
    8787    // contains all possible cases the cursor can be in the SelectAction
    88     private enum SelectActionCursor {
     88    enum SelectActionCursor {
    8989
    9090        rect(NORMAL, "selection"),
     
    114114        }
    115115
     116        /**
     117         * Returns the action cursor.
     118         * @return the cursor
     119         */
    116120        public Cursor cursor() {
    117121            return c;
  • trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java

    r11464 r11978  
    6767    private static final String SEARCH_EXPRESSION = "searchExpression";
    6868
     69    /**
     70     * Search mode.
     71     */
    6972    public enum SearchMode {
    7073        /** replace selection */
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r11613 r11978  
    746746    public static class ExactKeyValue extends TaggedMatch {
    747747
    748         private enum Mode {
     748        enum Mode {
    749749            ANY, ANY_KEY, ANY_VALUE, EXACT, NONE, MISSING_KEY,
    750750            ANY_KEY_REGEXP, ANY_VALUE_REGEXP, EXACT_REGEXP, MISSING_KEY_REGEXP;
     
    757757        private final Mode mode;
    758758
     759        /**
     760         * Constructs a new {@code ExactKeyValue}.
     761         * @param regexp regular expression
     762         * @param key key
     763         * @param value value
     764         * @throws ParseError if a parse error occurs
     765         */
    759766        public ExactKeyValue(boolean regexp, String key, String value) throws ParseError {
    760767            if ("".equals(key))
Note: See TracChangeset for help on using the changeset viewer.