Ignore:
Timestamp:
2016-07-11T23:01:43+02:00 (9 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogPlugin.java

    r32447 r32638  
    1818/**
    1919 * Add NanoLog opening menu item and the panel.
    20  * 
     20 *
    2121 * @author zverik
    2222 */
    2323public class NanoLogPlugin extends Plugin {
    24     public NanoLogPlugin( PluginInformation info ) {
     24    public NanoLogPlugin(PluginInformation info) {
    2525        super(info);
    2626        Main.main.menu.fileMenu.insert(new OpenNanoLogLayerAction(), 4);
    2727    }
    28    
     28
    2929    @Override
    30     public void mapFrameInitialized( MapFrame oldFrame, MapFrame newFrame ) {
    31         if( oldFrame == null && newFrame != null ) {
     30    public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
     31        if (oldFrame == null && newFrame != null) {
    3232            NanoLogPanel panel = new NanoLogPanel();
    3333            newFrame.addToggleDialog(panel);
     
    3535        }
    3636    }
    37    
     37
    3838    private class OpenNanoLogLayerAction extends JosmAction {
    3939
    40         public OpenNanoLogLayerAction() {
     40        OpenNanoLogLayerAction() {
    4141            super(tr("Open NanoLog file..."), "nanolog.png", tr("Open NanoLog file..."), null, false);
    4242        }
    4343
    44         public void actionPerformed( ActionEvent e ) {
     44        @Override
     45        public void actionPerformed(ActionEvent e) {
    4546            JFileChooser fc = new JFileChooser();
    46             if( fc.showOpenDialog(Main.parent) == JFileChooser.APPROVE_OPTION ) {
     47            if (fc.showOpenDialog(Main.parent) == JFileChooser.APPROVE_OPTION) {
    4748                try {
    4849                    List<NanoLogEntry> entries = NanoLogLayer.readNanoLog(fc.getSelectedFile());
    49                     if( !entries.isEmpty() ) {
     50                    if (!entries.isEmpty()) {
    5051                        NanoLogLayer layer = new NanoLogLayer(entries);
    5152                        Main.getLayerManager().addLayer(layer);
    5253                        layer.setupListeners();
    5354                    }
    54                 } catch( IOException ex ) {
     55                } catch (IOException ex) {
    5556                    JOptionPane.showMessageDialog(Main.parent, tr("Could not read NanoLog file:") + "\n" + ex.getMessage());
    5657                }
    5758            }
    58         }       
     59        }
    5960    }
    6061}
Note: See TracChangeset for help on using the changeset viewer.