Ignore:
Timestamp:
2016-06-16T05:29:37+02:00 (9 years ago)
Author:
donvip
Message:

fix crash with JOSM 10358+

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/OSMRecPlugin/src/org/openstreetmap/josm/plugins/osmrec/MenuExportAction.java

    r31106 r32278  
    1111 *
    1212 */
     13public class MenuExportAction extends JosmAction {
    1314
    14 public class MenuExportAction extends JosmAction {
    15        
    16         public MenuExportAction(){
    17         super(tr("OSM Recommendation"), "images/dialogs/logo-osmrec.png",
    18                 tr("Recommend categories to your newly created instances."), null, false);
     15    /**
     16     * Constructs a new {@code MenuExportAction}.
     17     */
     18    public MenuExportAction(){
     19        super(tr("OSM Recommendation"), "dialogs/logo-osmrec.png",
     20              tr("Recommend categories to your newly created instances."), null, false);
    1921    }
    2022       
    2123    @Override
    2224    public void actionPerformed(ActionEvent arg0) {
    23 
    24         if( OSMRecPlugin.getCurrentMapFrame() !=null ){
     25        if (OSMRecPlugin.getCurrentMapFrame() != null) {
    2526            OSMRecToggleDialog pro = new OSMRecToggleDialog();
    2627            OSMRecPlugin.getCurrentMapFrame().addToggleDialog(pro);
Note: See TracChangeset for help on using the changeset viewer.