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/DeleteChosenRelationAction.java

    r28813 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.util.Collections;
     8
    69import javax.swing.AbstractAction;
     10
    711import org.openstreetmap.josm.Main;
    812import org.openstreetmap.josm.command.Command;
     
    1014import org.openstreetmap.josm.data.osm.Relation;
    1115import org.openstreetmap.josm.tools.ImageProvider;
     16
    1217import relcontext.ChosenRelation;
    1318import relcontext.ChosenRelationListener;
     
    1621    private ChosenRelation rel;
    1722
    18     public DeleteChosenRelationAction( ChosenRelation rel ) {
     23    public DeleteChosenRelationAction(ChosenRelation rel) {
    1924        super(tr("Delete relation"));
    2025        putValue(SMALL_ICON, ImageProvider.get("dialogs", "delete"));
     
    2429    }
    2530
    26     public void actionPerformed( ActionEvent e ) {
     31    @Override
     32    public void actionPerformed(ActionEvent e) {
    2733        Relation r = rel.get();
    2834        rel.clear();
    2935        Command c = DeleteCommand.delete(Main.main.getEditLayer(), Collections.singleton(r), true, true);
    30         if( c != null )
     36        if (c != null ) {
    3137            Main.main.undoRedo.add(c);
     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.