Ignore:
Timestamp:
2014-10-19T01:27:04+02:00 (12 years ago)
Author:
donvip
Message:

[josm_plugins] fix java 7 warnings / global usage of try-with-resource

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/src/panels/PanelSaw.java

    r30737 r30738  
    2727                                JRadioButton button = shapes.get(shp);
    2828                                if (button.isSelected()) {
    29                                         dlg.panelMain.mark.setShape(shp);
    30                                         dlg.panelMain.mark.setObject(objects.get(shp));
     29                                        SmedAction.panelMain.mark.setShape(shp);
     30                                        SmedAction.panelMain.mark.setObject(objects.get(shp));
    3131                                        button.setBorderPainted(true);
    3232                                } else
    3333                                        button.setBorderPainted(false);
    3434                        }
    35                         if (dlg.panelMain.mark.testValid()) {
    36                                 dlg.panelMain.panelChan.topmarkButton.setVisible(true);
    37                                 dlg.panelMain.mark.setObjPattern(Pat.VSTRP);
    38                                 dlg.panelMain.mark.setObjColour(Col.RED);
    39                                 dlg.panelMain.mark.addObjColour(Col.WHITE);
     35                        if (SmedAction.panelMain.mark.testValid()) {
     36                                SmedAction.panelMain.panelChan.topmarkButton.setVisible(true);
     37                                SmedAction.panelMain.mark.setObjPattern(Pat.VSTRP);
     38                                SmedAction.panelMain.mark.setObjColour(Col.RED);
     39                                SmedAction.panelMain.mark.addObjColour(Col.WHITE);
    4040                        } else {
    41                                 dlg.panelMain.panelChan.topmarkButton.setVisible(false);
     41                                SmedAction.panelMain.panelChan.topmarkButton.setVisible(false);
    4242                        }
    43                         dlg.panelMain.panelMore.syncPanel();
     43                        SmedAction.panelMain.panelMore.syncPanel();
    4444                }
    4545        };
     
    5858                for (Shp shp : shapes.keySet()) {
    5959                        JRadioButton button = shapes.get(shp);
    60                         if (dlg.panelMain.mark.getShape() == shp) {
     60                        if (SmedAction.panelMain.mark.getShape() == shp) {
    6161                                button.setBorderPainted(true);
    6262                        } else
    6363                                button.setBorderPainted(false);
    6464                }
    65                 dlg.panelMain.mark.testValid();
     65                SmedAction.panelMain.mark.testValid();
    6666        }
    6767       
Note: See TracChangeset for help on using the changeset viewer.