| 95 | | PluginInformation schostakowitsch = PluginInformation.getLoaded("schostakowitsch"); |
| 96 | | if (schostakowitsch == null || !"2".equals(schostakowitsch.version)) { |
| 97 | | JOptionPane.showMessageDialog(Main.parent, tr("Please install plugin 'schostakowitsch' version 2"); |
| 98 | | return; |
| | 95 | class SecondWaltz { |
| | 96 | |
| | 97 | // constructor called by JOSM to initialize the plugin |
| | 98 | public SecondWaltz() { |
| | 99 | PluginInformation schostakowitsch = PluginInformation.getLoaded("schostakowitsch"); |
| | 100 | if (schostakowitsch == null || !"2".equals(schostakowitsch.version)) { |
| | 101 | JOptionPane.showMessageDialog(Main.parent, tr("Please install plugin 'schostakowitsch' version 2"); |
| | 102 | return; |
| | 103 | } |
| | 104 | |
| | 105 | // initialize the plugin |
| | 106 | ... |
| | 107 | } |
| | 108 | |