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

    r30145 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.data.osm.Relation;
    812import org.openstreetmap.josm.gui.dialogs.relation.RelationEditor;
    913import org.openstreetmap.josm.tools.ImageProvider;
     14
    1015import relcontext.ChosenRelation;
    1116import relcontext.ChosenRelationListener;
     
    1318/**
    1419 * Opens an editor for chosen relation.
    15  * 
     20 *
    1621 * @author Zverik
    1722 */
     
    1924    private ChosenRelation rel;
    2025
    21     public EditChosenRelationAction( ChosenRelation rel ) {
     26    public EditChosenRelationAction(ChosenRelation rel) {
    2227        super();
    23 //        putValue(NAME, "E");
     28        //        putValue(NAME, "E");
    2429        putValue(SMALL_ICON, ImageProvider.get("dialogs/mappaint", "pencil"));
    2530        putValue(SHORT_DESCRIPTION, tr("Open relation editor for the chosen relation"));
     
    2934    }
    3035
    31     public void actionPerformed( ActionEvent e ) {
     36    @Override
     37    public void actionPerformed(ActionEvent e) {
    3238        Relation relation = rel.get();
    33         if( relation == null ) return;
     39        if (relation == null ) return;
    3440        RelationEditor.getEditor(Main.main.getEditLayer(), relation, null).setVisible(true);
    3541    }
    3642
    37     public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
     43    @Override
     44    public void chosenRelationChanged(Relation oldRelation, Relation newRelation) {
    3845        setEnabled(newRelation != null);
    3946    }
Note: See TracChangeset for help on using the changeset viewer.