Ignore:
Timestamp:
2016-06-24T09:10:57+02:00 (10 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/DuplicateChosenRelationAction.java

    r26290 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;
     7
    58import javax.swing.AbstractAction;
     9
    610import org.openstreetmap.josm.Main;
    711import org.openstreetmap.josm.command.AddCommand;
    812import org.openstreetmap.josm.data.osm.Relation;
    913import org.openstreetmap.josm.tools.ImageProvider;
     14
    1015import relcontext.ChosenRelation;
    1116import relcontext.ChosenRelationListener;
     
    1419    private ChosenRelation rel;
    1520
    16     public DuplicateChosenRelationAction( ChosenRelation rel ) {
     21    public DuplicateChosenRelationAction(ChosenRelation rel) {
    1722        super(tr("Duplicate relation"));
    1823        putValue(SMALL_ICON, ImageProvider.get("duplicate"));
     
    2328    }
    2429
    25     public void actionPerformed( ActionEvent e ) {
     30    @Override
     31    public void actionPerformed(ActionEvent e) {
    2632        Relation r = rel.get();
    2733        Relation copy = new Relation(r, true);
    2834        Main.main.undoRedo.add(new AddCommand(copy));
    2935        rel.set(copy);
    30         if( Main.main.getCurrentDataSet() != null )
     36        if (Main.main.getCurrentDataSet() != null ) {
    3137            Main.main.getCurrentDataSet().setSelected(copy);
     38        }
    3239    }
    3340
    34     public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
     41    @Override
     42    public void chosenRelationChanged(Relation oldRelation, Relation newRelation) {
    3543        setEnabled(newRelation != null);
    3644    }
Note: See TracChangeset for help on using the changeset viewer.