Changeset 14146 in josm for trunk/src/org


Ignore:
Timestamp:
2018-08-12T14:58:00+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - don't import Main just for javadoc

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/INode.java

    r14120 r14146  
    22package org.openstreetmap.josm.data.osm;
    33
    4 import org.openstreetmap.josm.Main;
    54import org.openstreetmap.josm.data.coor.EastNorth;
    65import org.openstreetmap.josm.data.coor.ILatLon;
     
    2928     * Replies the projected east/north coordinates.
    3029     * <p>
    31      * Uses the {@link Main#getProjection() global projection} to project the lat/lon-coordinates.
     30     * Uses the {@link ProjectionRegistry#getProjection() global projection} to project the lat/lon-coordinates.
    3231     * <p>
    3332     * @return the east north coordinates or {@code null} if {@link #isLatLonKnown()} is false.
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java

    r13493 r14146  
    1414import java.util.Set;
    1515
    16 import org.openstreetmap.josm.Main;
    1716import org.openstreetmap.josm.data.coor.EastNorth;
    1817import org.openstreetmap.josm.data.osm.DataSet;
     
    2625import org.openstreetmap.josm.data.osm.visitor.paint.relations.Multipolygon.PolyData.Intersection;
    2726import org.openstreetmap.josm.data.projection.Projection;
     27import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    2828import org.openstreetmap.josm.spi.preferences.Config;
    2929import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
     
    484484         * Calculate area and perimeter length in the given projection.
    485485         *
    486          * @param projection the projection to use for the calculation, {@code null} defaults to {@link Main#getProjection()}
     486         * @param projection the projection to use for the calculation, {@code null} defaults to {@link ProjectionRegistry#getProjection()}
    487487         * @return area and perimeter
    488488         */
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r14143 r14146  
    548548     * @param reason the reason for exiting
    549549     * @return {@code true} if JOSM has been closed, {@code false} if the user has cancelled the operation.
    550      * @since 12636 (specialized version of {@link Main#exitJosm})
     550     * @since 12636 (specialized version of {@link Lifecycle#exitJosm})
    551551     */
    552552    public static boolean exitJosm(boolean exit, int exitCode, SaveLayersDialog.Reason reason) {
  • trunk/src/org/openstreetmap/josm/gui/download/UserQueryList.java

    r12880 r14146  
    4242import javax.swing.text.JTextComponent;
    4343
    44 import org.openstreetmap.josm.Main;
    4544import org.openstreetmap.josm.gui.ExtendedDialog;
    4645import org.openstreetmap.josm.gui.util.GuiHelper;
     
    245244
    246245    /**
    247      * Saves all elements from the list to {@link Main#pref}.
     246     * Saves all elements from the list to {@link Config#getPref}.
    248247     */
    249248    private void savePreferences() {
     
    262261
    263262    /**
    264      * Loads the user saved items from {@link Main#pref}.
     263     * Loads the user saved items from {@link Config#getPref}.
    265264     * @return A set of the user saved items.
    266265     */
  • trunk/src/org/openstreetmap/josm/tools/OpenBrowser.java

    r14138 r14146  
    88import java.net.URI;
    99import java.net.URISyntaxException;
    10 
    11 import org.openstreetmap.josm.Main;
    1210
    1311/**
     
    3634     * @return <code>null</code> for success or a string in case of an error.
    3735     * @throws IllegalStateException if no platform is set to which opening the URL can be dispatched,
    38      * {@link Main#platform}
     36     * {@link PlatformManager#getPlatform}
    3937     */
    4038    public static String displayUrl(URI uri) {
     
    8583     * @return <code>null</code> for success or a string in case of an error.
    8684     * @throws IllegalStateException if no platform is set to which opening the URL can be dispatched,
    87      * {@link Main#platform}
     85     * {@link PlatformManager#getPlatform}
    8886     */
    8987    public static String displayUrl(String url) {
Note: See TracChangeset for help on using the changeset viewer.