Changeset 13106 in josm


Ignore:
Timestamp:
2017-11-10T01:11:04+01:00 (9 days ago)
Author:
Don-vip
Message:

add some javadoc

Location:
trunk/src/org/openstreetmap/josm
Files:
5 edited

Legend:

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

    r12641 r13106  
    8787        }
    8888
     89        /**
     90         * Converts this {@code PolarCoor} to an {@link EastNorth} instance.
     91         * @return a new {@code EastNorth} instance
     92         */
    8993        public EastNorth toEastNorth() {
    9094            return new EastNorth(radius * Math.cos(angle - azimuth) + origin.east(), radius * Math.sin(angle - azimuth)
  • trunk/src/org/openstreetmap/josm/actions/CopyCoordinatesAction.java

    r12581 r13106  
    2020public class CopyCoordinatesAction extends JosmAction {
    2121
     22    /**
     23     * Constructs a new {@code CopyCoordinatesAction}.
     24     */
    2225    public CopyCoordinatesAction() {
    2326        super(tr("Copy Coordinates"), null,
  • trunk/src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java

    r12636 r13106  
    2323public class DownloadPrimitiveAction extends JosmAction {
    2424
     25    /**
     26     * Action shortcut (ctrl-shift-O by default), made public in order to be used from {@code GettingStarted} page.
     27     */
    2528    public static final Shortcut SHORTCUT = Shortcut.registerShortcut("system:download_primitive", tr("File: {0}", tr("Download object...")),
    2629            KeyEvent.VK_O, Shortcut.CTRL_SHIFT);
     
    3740    @Override
    3841    public void actionPerformed(ActionEvent e) {
    39 
    4042        DownloadObjectDialog dialog = new DownloadObjectDialog();
    4143        if (dialog.showDialog().getValue() != dialog.getContinueButtonIndex()) return;
     
    4547
    4648    /**
     49     * Submits the download task for the given primitive ids.
    4750     * @param newLayer if the data should be downloaded into a new layer
    4851     * @param ids List of primitive id to download
  • trunk/src/org/openstreetmap/josm/actions/ExpertToggleAction.java

    r12637 r13106  
    4343
    4444    /**
    45      * Register a expert mode change listener
     45     * Register a expert mode change listener.
    4646     *
    4747     * @param listener the listener. Ignored if null.
     
    5151    }
    5252
     53    /**
     54     * Register a expert mode change listener, and optionnally fires it.
     55     * @param listener the listener. Ignored if null.
     56     * @param fireWhenAdding if true, the listener will be fired immediately after added
     57     */
    5358    public static synchronized void addExpertModeChangeListener(ExpertModeChangeListener listener, boolean fireWhenAdding) {
    5459        if (listener == null) return;
  • trunk/src/org/openstreetmap/josm/gui/dialogs/MenuItemSearchDialog.java

    r12643 r13106  
    120120
    121121        // CHECKSTYLE.OFF: LineLength
    122         /** Action shortcut (ctrl / space by default */
     122        /** Action shortcut (ctrl / space by default), made public in order to be used from {@code GettingStarted} page. */
    123123        public static final Shortcut SHORTCUT = Shortcut.registerShortcut("help:search-items", "Search menu items", KeyEvent.VK_SPACE, Shortcut.CTRL);
    124124        // CHECKSTYLE.ON: LineLength
Note: See TracChangeset for help on using the changeset viewer.