Ignore:
Timestamp:
2017-06-16T09:18:27+02:00 (7 years ago)
Author:
giackserva
Message:

[pt_assistant] fixes pointed out by sonar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/EditHighlightedRelationsAction.java

    r33367 r33402  
    2525    private static final long serialVersionUID = 2681464946469047054L;
    2626
     27    private static final String actionName = "Edit Highlighted Relation";
     28
    2729    /**
    2830     * Default constructor
    2931     */
    3032    public EditHighlightedRelationsAction() {
    31         super(tr("Edit Highlighted Relation"), new ImageProvider("dialogs", "edit"), tr("Edit Highlighted Relation"),
    32                 Shortcut.registerShortcut("Edit Highlighted Relation", tr("Edit Highlighted Relation"),
     33        super(tr(actionName), new ImageProvider("dialogs", "edit"), tr(actionName),
     34                Shortcut.registerShortcut("Edit Highlighted Relation", tr(actionName),
    3335                                KeyEvent.VK_K, Shortcut.ALT),
    3436                false, "editHighlightedRelations", false);
     
    4143    public void actionPerformed(ActionEvent e) {
    4244        for(Relation relation : PTAssistantPlugin.getHighlightedRelations()) {
    43                 RelationEditor editor = RelationEditor.getEditor(Main.getLayerManager().getEditLayer(), relation, null);
     45                RelationEditor editor = RelationEditor.getEditor(
     46                                Main.getLayerManager().getEditLayer(), relation, null);
    4447            editor.setVisible(true);
    4548        }
Note: See TracChangeset for help on using the changeset viewer.