Ignore:
Timestamp:
2016-06-24T09:10:57+02:00 (9 years ago)
Author:
donvip
Message:

checkstyle, update to JOSM 10279

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/RelationHelpAction.java

    r30737 r32395  
     1// License: GPL. For details, see LICENSE file.
    12package relcontext.actions;
    23
    34import static org.openstreetmap.josm.tools.I18n.tr;
     5
    46import java.awt.event.ActionEvent;
    57import java.net.HttpURLConnection;
     
    810import java.util.ArrayList;
    911import java.util.List;
     12
    1013import javax.swing.AbstractAction;
     14
    1115import org.openstreetmap.josm.Main;
    1216import org.openstreetmap.josm.data.osm.Relation;
     
    1418import org.openstreetmap.josm.tools.LanguageInfo;
    1519import org.openstreetmap.josm.tools.OpenBrowser;
     20
    1621import relcontext.ChosenRelation;
    1722import relcontext.ChosenRelationListener;
     
    2025    private ChosenRelation rel;
    2126
    22     public RelationHelpAction( ChosenRelation rel ) {
     27    public RelationHelpAction(ChosenRelation rel) {
    2328        super();
    2429        putValue(NAME, tr("Open relation wiki page"));
     
    3035    }
    3136
    32     public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
     37    @Override
     38    public void chosenRelationChanged(Relation oldRelation, Relation newRelation) {
    3339        setEnabled(newRelation != null);
    3440    }
     
    3743     * Copypasted from {@link org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog.HelpAction}.
    3844     */
    39     public void actionPerformed( ActionEvent e ) {
    40         if( rel.get() == null )
     45    @Override
     46    public void actionPerformed(ActionEvent e) {
     47        if (rel.get() == null )
    4148            return;
    4249        try {
     
    5562
    5663            Main.worker.execute(new Runnable(){
     64                @Override
    5765                public void run() {
    5866                    try {
     
    7381                                        .replace("=", "%3D") /* do not URLencode whole string! */
    7482                                        .replaceFirst("/wiki/", "/w/index.php?redirect=no&title=")
    75                                 ).toURL().openConnection();
     83                                        ).toURL().openConnection();
    7684                                conn.setConnectTimeout(5000);
    7785
Note: See TracChangeset for help on using the changeset viewer.