Changeset 14153 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
- Timestamp:
- 2018-08-13T02:18:54+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r14149 r14153 53 53 import javax.swing.UIManager; 54 54 55 import org.openstreetmap.josm.Main;56 55 import org.openstreetmap.josm.actions.RestartAction; 57 56 import org.openstreetmap.josm.data.Preferences; … … 186 185 a.setCaretPosition(0); 187 186 if (!GraphicsEnvironment.isHeadless()) { 188 JOptionPane.showMessageDialog(Main .parent, new JScrollPane(a), tr("Plugin information"),187 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), new JScrollPane(a), tr("Plugin information"), 189 188 JOptionPane.INFORMATION_MESSAGE); 190 189 } … … 1397 1396 try { 1398 1397 FutureTask<Integer> task = new FutureTask<>(() -> HelpAwareOptionPane.showOptionDialog( 1399 Main .parent,1398 MainApplication.getMainFrame(), 1400 1399 msg.toString(), 1401 1400 tr("Update plugins"), … … 1480 1479 case 0: 1481 1480 // update the plugin 1482 updatePlugins(Main .parent, Collections.singleton(pluginInfo), null, true);1481 updatePlugins(MainApplication.getMainFrame(), Collections.singleton(pluginInfo), null, true); 1483 1482 return pluginDownloadTask; 1484 1483 case 1: … … 1487 1486 Config.getPref().putList("plugins", new ArrayList<>(plugins)); 1488 1487 GuiHelper.runInEDTAndWait(() -> JOptionPane.showMessageDialog( 1489 Main .parent,1488 MainApplication.getMainFrame(), 1490 1489 tr("The plugin has been removed from the configuration. Please restart JOSM to unload the plugin."), 1491 1490 tr("Information"),
Note:
See TracChangeset
for help on using the changeset viewer.
