Changeset 34528 in osm for applications/editors/josm/plugins/mapdust/src
- Timestamp:
- 2018-08-18T18:45:19+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust
- Files:
-
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/MapdustLayer.java
r32787 r34528 30 30 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 import java.awt.Color; 33 34 import java.awt.Dimension; … … 40 41 import java.util.List; 41 42 import java.util.Locale; 43 42 44 import javax.swing.Action; 43 45 import javax.swing.Icon; 44 46 import javax.swing.ImageIcon; 45 47 import javax.swing.JToolTip; 48 46 49 import org.openstreetmap.josm.actions.RenameLayerAction; 47 50 import org.openstreetmap.josm.data.Bounds; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/MapdustPlugin.java
r34214 r34528 43 43 import javax.swing.SwingUtilities; 44 44 45 import org.openstreetmap.josm.Main;46 45 import org.openstreetmap.josm.data.Bounds; 47 46 import org.openstreetmap.josm.data.UserIdentityManager; … … 68 67 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBugFilter; 69 68 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustRelevance; 69 import org.openstreetmap.josm.spi.preferences.Config; 70 70 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent; 71 71 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener; … … 137 137 KeyEvent.VK_0, Shortcut.ALT_SHIFT); 138 138 /* add default values for static variables */ 139 Main.pref.put("mapdust.pluginState", MapdustPluginState.ONLINE.getValue());140 Main.pref.put("mapdust.nickname", "");141 Main.pref.putBoolean("mapdust.showError", true);142 Main.pref.put("mapdust.version", getPluginInformation().version);143 Main.pref.put("mapdust.localVersion", getPluginInformation().localversion);144 Main.pref.addPreferenceChangeListener(this);139 Config.getPref().put("mapdust.pluginState", MapdustPluginState.ONLINE.getValue()); 140 Config.getPref().put("mapdust.nickname", ""); 141 Config.getPref().putBoolean("mapdust.showError", true); 142 Config.getPref().put("mapdust.version", getPluginInformation().version); 143 Config.getPref().put("mapdust.localVersion", getPluginInformation().localversion); 144 Config.getPref().addPreferenceChangeListener(this); 145 145 } 146 146 … … 168 168 newMapFrame.mapView.addMouseListener(this); 169 169 /* put username to preferences */ 170 Main.pref.put("mapdust.josmUserName", UserIdentityManager.getInstance().getUserName());170 Config.getPref().put("mapdust.josmUserName", UserIdentityManager.getInstance().getUserName()); 171 171 } else { 172 172 /* if new MapFrame is null, remove listener */ … … 195 195 if (event.getKey().equals("osm-server.username")) { 196 196 String newUserName = UserIdentityManager.getInstance().getUserName(); 197 String oldUserName = Main.pref.get("mapdust.josmUserName");198 String nickname = Main.pref.get("mapdust.nickname");197 String oldUserName = Config.getPref().get("mapdust.josmUserName"); 198 String nickname = Config.getPref().get("mapdust.nickname"); 199 199 if (nickname.isEmpty()) { 200 200 /* nickname was not completed */ 201 Main.pref.put("mapdust.josmUserName", newUserName);202 Main.pref.put("mapdust.nickname", newUserName);201 Config.getPref().put("mapdust.josmUserName", newUserName); 202 Config.getPref().put("mapdust.nickname", newUserName); 203 203 } else { 204 204 if (nickname.equals(oldUserName)) { 205 205 /* user name was used for nickname, and was not changed */ 206 Main.pref.put("mapdust.josmUserName", newUserName);207 Main.pref.put("mapdust.nickname", newUserName);206 Config.getPref().put("mapdust.josmUserName", newUserName); 207 Config.getPref().put("mapdust.nickname", newUserName); 208 208 } else { 209 209 /* user name was used for nickname, and was changed */ 210 Main.pref.put("mapdust.josmUserName", newUserName);210 Config.getPref().put("mapdust.josmUserName", newUserName); 211 211 } 212 212 } … … 262 262 String title = "MapDust"; 263 263 String message = "The operation was successful."; 264 JOptionPane.showMessageDialog(Main .parent, message, title,264 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), message, title, 265 265 JOptionPane.INFORMATION_MESSAGE); 266 266 } … … 380 380 MapdustBug bug = mapdustGUI.getSelectedBug(); 381 381 if (bug != null) { 382 Main.pref.put("selectedBug.status", bug.getStatus()382 Config.getPref().put("selectedBug.status", bug.getStatus() 383 383 .getValue()); 384 384 } else { 385 Main.pref.put("selectedBug.status", "create");385 Config.getPref().put("selectedBug.status", "create"); 386 386 } 387 387 /* disable MapdustButtonPanel */ … … 458 458 if (e.getRemovedLayer() instanceof MapdustLayer) { 459 459 /* remove the layer */ 460 Main.pref.put("mapdust.pluginState",460 Config.getPref().put("mapdust.pluginState", 461 461 MapdustPluginState.ONLINE.getValue()); 462 462 NavigatableComponent.removeZoomChangeListener(this); … … 627 627 */ 628 628 protected void handleError() { 629 String showMessage = Main.pref.get("mapdust.showError");629 String showMessage = Config.getPref().get("mapdust.showError"); 630 630 Boolean showErrorMessage = Boolean.parseBoolean(showMessage); 631 631 if (showErrorMessage) { 632 632 /* show errprMessage, and remove the layer */ 633 Main.pref.putBoolean("mapdust.showError", false);633 Config.getPref().putBoolean("mapdust.showError", false); 634 634 String errorMessage = "There was a Mapdust service error."; 635 635 errorMessage += " Please try later."; 636 JOptionPane.showMessageDialog(Main .parent, tr(errorMessage));636 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr(errorMessage)); 637 637 } 638 638 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/MapdustActionUploader.java
r32787 r34528 30 30 31 31 import java.util.List; 32 32 33 import org.openstreetmap.josm.plugins.mapdust.gui.value.MapdustAction; 33 34 import org.openstreetmap.josm.plugins.mapdust.gui.value.MapdustServiceCommand; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/MapdustGUI.java
r33786 r34528 30 30 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 import java.awt.BorderLayout; 33 34 import java.util.ArrayList; 34 35 import java.util.Iterator; 35 36 import java.util.List; 37 36 38 import javax.swing.JPanel; 37 39 import javax.swing.JTabbedPane; 38 import org.openstreetmap.josm.Main; 40 39 41 import org.openstreetmap.josm.gui.MainApplication; 40 42 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; … … 54 56 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBugFilter; 55 57 import org.openstreetmap.josm.plugins.mapdust.service.value.Status; 58 import org.openstreetmap.josm.spi.preferences.Config; 56 59 import org.openstreetmap.josm.tools.Shortcut; 57 60 … … 233 236 MapdustPlugin mapdustPlugin) { 234 237 setMapdustPlugin(mapdustPlugin); 235 String pluginState = Main.pref.get("mapdust.pluginState");238 String pluginState = Config.getPref().get("mapdust.pluginState"); 236 239 if (pluginState.equals(MapdustPluginState.ONLINE.getValue())) { 237 240 if (tabbedPane != null) { -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/adapter/WindowClose.java
r32787 r34528 31 31 import java.awt.event.WindowAdapter; 32 32 import java.awt.event.WindowEvent; 33 import org.openstreetmap.josm.Main; 33 34 34 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.AbstractDialog; 35 35 import org.openstreetmap.josm.plugins.mapdust.gui.component.panel.MapdustButtonPanel; 36 36 import org.openstreetmap.josm.plugins.mapdust.gui.value.MapdustPluginState; 37 37 import org.openstreetmap.josm.plugins.mapdust.service.value.Status; 38 import org.openstreetmap.josm.spi.preferences.Config; 38 39 39 40 … … 70 71 @Override 71 72 public void windowClosing(WindowEvent event) { 72 String status = Main.pref.get("selectedBug.status");73 String pluginState = Main.pref.get("mapdust.pluginState");73 String status = Config.getPref().get("selectedBug.status"); 74 String pluginState = Config.getPref().get("mapdust.pluginState"); 74 75 /* enable buttons */ 75 76 if (btnPanel != null) { -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteActionList.java
r33044 r34528 35 35 import javax.swing.JToggleButton; 36 36 37 import org.openstreetmap.josm. Main;37 import org.openstreetmap.josm.gui.MainApplication; 38 38 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustActionUploader; 39 39 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustActionUploaderException; 40 40 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustGUI; 41 41 import org.openstreetmap.josm.plugins.mapdust.gui.value.MapdustPluginState; 42 import org.openstreetmap.josm.spi.preferences.Config; 42 43 43 44 /** … … 74 75 String errorMessage = "There was an error uploading the "; 75 76 errorMessage += "action list."; 76 JOptionPane.showMessageDialog(Main .parent, tr(errorMessage),77 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr(errorMessage), 77 78 tr("Error"), JOptionPane.ERROR_MESSAGE); 78 79 } 79 Main.pref.put("mapdust.pluginState",80 Config.getPref().put("mapdust.pluginState", 80 81 MapdustPluginState.ONLINE.getValue()); 81 82 notifyObservers(null, false); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteAddBug.java
r33786 r34528 30 30 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 import java.awt.Point; 33 34 import java.awt.event.ActionEvent; 34 35 import java.util.ArrayList; 35 36 import java.util.Iterator; 37 36 38 import javax.swing.JOptionPane; 37 import org.openstreetmap.josm.Main; 39 38 40 import org.openstreetmap.josm.data.coor.LatLon; 39 41 import org.openstreetmap.josm.gui.MainApplication; … … 49 51 import org.openstreetmap.josm.plugins.mapdust.service.MapdustServiceHandler; 50 52 import org.openstreetmap.josm.plugins.mapdust.service.MapdustServiceHandlerException; 53 import org.openstreetmap.josm.plugins.mapdust.service.value.BugType; 51 54 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBug; 52 55 import org.openstreetmap.josm.plugins.mapdust.service.value.Status; 53 import org.openstreetmap.josm. plugins.mapdust.service.value.BugType;56 import org.openstreetmap.josm.spi.preferences.Config; 54 57 55 58 … … 112 115 if (errorMessage != null) { 113 116 /* invalid data */ 114 JOptionPane.showMessageDialog(Main .parent, tr(errorMessage),117 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr(errorMessage), 115 118 tr("Missing input data"), JOptionPane.WARNING_MESSAGE); 116 119 return; 117 120 } 118 121 /* valid data */ 119 Main.pref.put("mapdust.nickname", nickname);122 Config.getPref().put("mapdust.nickname", nickname); 120 123 Point p = createDialog.getPoint(); 121 124 LatLon latlon = null; … … 125 128 MapdustBug bug = new MapdustBug(latlon, type, commentText, 126 129 nickname); 127 String pluginState = Main.pref.get("mapdust.pluginState");130 String pluginState = Config.getPref().get("mapdust.pluginState"); 128 131 if (pluginState.equals(MapdustPluginState.OFFLINE.getValue())) { 129 132 /* offline state */ … … 146 149 } catch (MapdustServiceHandlerException e) { 147 150 errorMessage = "There was a Mapdust service error."; 148 JOptionPane.showMessageDialog(Main .parent, tr(errorMessage),151 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr(errorMessage), 149 152 tr("Error"), JOptionPane.ERROR_MESSAGE); 150 153 } … … 156 159 } catch (MapdustServiceHandlerException e) { 157 160 errorMessage = "There was a Mapdust service error."; 158 JOptionPane.showMessageDialog(Main .parent,161 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 159 162 tr(errorMessage), tr("Error"), 160 163 JOptionPane.ERROR_MESSAGE); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteCancel.java
r25591 r34528 30 30 31 31 import java.awt.event.ActionEvent; 32 import org.openstreetmap.josm.Main; 32 33 33 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustGUI; 34 34 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.AbstractDialog; … … 36 36 import org.openstreetmap.josm.plugins.mapdust.gui.value.MapdustPluginState; 37 37 import org.openstreetmap.josm.plugins.mapdust.service.value.Status; 38 import org.openstreetmap.josm.spi.preferences.Config; 38 39 39 40 … … 73 74 public void actionPerformed(ActionEvent event) { 74 75 if (event != null) { 75 String pluginState = Main.pref.get("mapdust.pluginState");76 String status = Main.pref.get("selectedBug.status");76 String pluginState = Config.getPref().get("mapdust.pluginState"); 77 String status = Config.getPref().get("selectedBug.status"); 77 78 /* enable buttons */ 78 79 MapdustButtonPanel btnPanel = -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteCloseBug.java
r32787 r34528 30 30 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 import java.awt.event.ActionEvent; 33 34 import java.util.ArrayList; 34 35 import java.util.Iterator; 36 35 37 import javax.swing.JButton; 36 38 import javax.swing.JOptionPane; 37 import org.openstreetmap.josm.Main; 39 40 import org.openstreetmap.josm.gui.MainApplication; 38 41 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustGUI; 39 42 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.ChangeBugStatusDialog; … … 50 53 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustComment; 51 54 import org.openstreetmap.josm.plugins.mapdust.service.value.Status; 55 import org.openstreetmap.josm.spi.preferences.Config; 52 56 53 57 … … 109 113 if (errorMessage != null) { 110 114 /* invalid input data */ 111 JOptionPane.showMessageDialog(Main .parent, tr(errorMessage),115 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr(errorMessage), 112 116 tr("Missing input data"), JOptionPane.WARNING_MESSAGE); 113 117 return; 114 118 } 115 119 /* valid input data */ 116 Main.pref.put("mapdust.nickname", nickname);120 Config.getPref().put("mapdust.nickname", nickname); 117 121 MapdustBug selectedBug = mapdustGUI.getSelectedBug(); 118 122 MapdustComment comment = new MapdustComment(selectedBug.getId(), 119 123 commentText, nickname); 120 String pluginState = Main.pref.get("mapdust.pluginState");124 String pluginState = Config.getPref().get("mapdust.pluginState"); 121 125 if (pluginState.equals(MapdustPluginState.OFFLINE.getValue())) { 122 126 /* offline state, put to the actions list */ … … 141 145 } catch (MapdustServiceHandlerException e) { 142 146 errorMessage = "There was a Mapdust service error."; 143 JOptionPane.showMessageDialog(Main .parent,147 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 144 148 tr(errorMessage), tr("Error"), 145 149 JOptionPane.ERROR_MESSAGE); … … 153 157 } catch (MapdustServiceHandlerException e) { 154 158 errorMessage = "There was a Mapdust service error."; 155 JOptionPane.showMessageDialog(Main .parent,159 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 156 160 tr(errorMessage), tr("Error"), 157 161 JOptionPane.ERROR_MESSAGE); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteCommentBug.java
r30737 r34528 30 30 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 import java.awt.event.ActionEvent; 33 34 import java.util.ArrayList; 34 35 import java.util.Iterator; 36 35 37 import javax.swing.JButton; 36 38 import javax.swing.JOptionPane; 37 import org.openstreetmap.josm.Main; 39 40 import org.openstreetmap.josm.gui.MainApplication; 38 41 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustGUI; 39 42 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.CommentBugDialog; … … 49 52 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBug; 50 53 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustComment; 54 import org.openstreetmap.josm.spi.preferences.Config; 51 55 52 56 … … 111 115 if (errorMessage != null) { 112 116 /* invalid input data */ 113 JOptionPane.showMessageDialog(Main .parent, tr(errorMessage),117 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr(errorMessage), 114 118 tr("Missing input data"), JOptionPane.WARNING_MESSAGE); 115 119 return; 116 120 } 117 121 /* valid */ 118 Main.pref.put("mapdust.nickname", nickname);122 Config.getPref().put("mapdust.nickname", nickname); 119 123 MapdustBug selectedBug = mapdustGUI.getSelectedBug(); 120 124 MapdustComment comment = new MapdustComment(selectedBug.getId(), 121 125 commentText, nickname); 122 String pluginState = Main.pref.get("mapdust.pluginState");126 String pluginState = Config.getPref().get("mapdust.pluginState"); 123 127 if (pluginState.equals(MapdustPluginState.OFFLINE.getValue())) { 124 128 /* offline, save to actions list */ … … 144 148 } catch (MapdustServiceHandlerException e) { 145 149 errorMessage = "There was a Mapdust service error."; 146 JOptionPane.showMessageDialog(Main .parent,150 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 147 151 tr(errorMessage), tr("Error"), 148 152 JOptionPane.ERROR_MESSAGE); … … 156 160 } catch (MapdustServiceHandlerException e) { 157 161 errorMessage = "There was a Mapdust service error."; 158 JOptionPane.showMessageDialog(Main .parent,162 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 159 163 tr(errorMessage), tr("Error"), 160 164 JOptionPane.ERROR_MESSAGE); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteInvalidateBug.java
r30737 r34528 30 30 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 import java.awt.event.ActionEvent; 33 34 import java.util.ArrayList; 34 35 import java.util.Iterator; 36 35 37 import javax.swing.JButton; 36 38 import javax.swing.JOptionPane; 37 import org.openstreetmap.josm.Main; 39 40 import org.openstreetmap.josm.gui.MainApplication; 38 41 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustGUI; 39 42 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.ChangeBugStatusDialog; … … 50 53 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustComment; 51 54 import org.openstreetmap.josm.plugins.mapdust.service.value.Status; 55 import org.openstreetmap.josm.spi.preferences.Config; 52 56 53 57 … … 115 119 if (errorMessage != null) { 116 120 /* invalid input */ 117 JOptionPane.showMessageDialog(Main .parent, tr(errorMessage),121 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr(errorMessage), 118 122 tr("Missing input data"), JOptionPane.WARNING_MESSAGE); 119 123 return; 120 124 } 121 125 /* valid input */ 122 Main.pref.put("mapdust.nickname", nickname);126 Config.getPref().put("mapdust.nickname", nickname); 123 127 MapdustBug selectedBug = mapdustGUI.getSelectedBug(); 124 128 MapdustComment comment = new MapdustComment(selectedBug.getId(), 125 129 commentText, nickname); 126 String pluginState = Main.pref.get("mapdust.pluginState");130 String pluginState = Config.getPref().get("mapdust.pluginState"); 127 131 if (pluginState.equals(MapdustPluginState.OFFLINE.getValue())) { 128 132 /* 'offline' state , add to action list */ … … 149 153 } catch (MapdustServiceHandlerException e) { 150 154 errorMessage = "There was a Mapdust service error."; 151 JOptionPane.showMessageDialog(Main .parent,155 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 152 156 tr(errorMessage), tr("Error"), 153 157 JOptionPane.ERROR_MESSAGE); … … 162 166 errorMessage = "There was a Mapdust service error."; 163 167 errorMessage += "Mapdust bug report."; 164 JOptionPane.showMessageDialog(Main .parent,168 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 165 169 tr(errorMessage), tr("Error"), 166 170 JOptionPane.ERROR_MESSAGE); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteReOpenBug.java
r30737 r34528 30 30 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 import java.awt.event.ActionEvent; 33 34 import java.util.ArrayList; 34 35 import java.util.Iterator; 36 35 37 import javax.swing.JButton; 36 38 import javax.swing.JOptionPane; 37 import org.openstreetmap.josm.Main; 39 40 import org.openstreetmap.josm.gui.MainApplication; 38 41 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustGUI; 39 42 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.ChangeBugStatusDialog; … … 50 53 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustComment; 51 54 import org.openstreetmap.josm.plugins.mapdust.service.value.Status; 55 import org.openstreetmap.josm.spi.preferences.Config; 52 56 53 57 … … 112 116 if (errorMessage != null) { 113 117 /* invalid data */ 114 JOptionPane.showMessageDialog(Main .parent, tr(errorMessage),118 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr(errorMessage), 115 119 tr("Missing input data"), JOptionPane.WARNING_MESSAGE); 116 120 return; 117 121 } 118 122 /* valid */ 119 Main.pref.put("mapdust.nickname", nickname);123 Config.getPref().put("mapdust.nickname", nickname); 120 124 MapdustBug selectedBug = mapdustGUI.getSelectedBug(); 121 125 MapdustComment comment = new MapdustComment(selectedBug.getId(), 122 126 commentText, nickname); 123 String pluginState = Main.pref.get("mapdust.pluginState");127 String pluginState = Config.getPref().get("mapdust.pluginState"); 124 128 if (pluginState.equals(MapdustPluginState.OFFLINE.getValue())) { 125 129 /* offline , save to action list */ … … 145 149 errorMessage = "There was a Mapdust service error."; 146 150 errorMessage += "Mapdust bug report."; 147 JOptionPane.showMessageDialog(Main .parent,151 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 148 152 tr(errorMessage), tr("Error"), 149 153 JOptionPane.ERROR_MESSAGE); … … 157 161 errorMessage = "There was a Mapdust service error."; 158 162 errorMessage += "Mapdust bug report."; 159 JOptionPane.showMessageDialog(Main .parent,163 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 160 164 tr(errorMessage), tr("Error"), 161 165 JOptionPane.ERROR_MESSAGE); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteRefresh.java
r33786 r34528 32 32 import java.util.ArrayList; 33 33 import java.util.Iterator; 34 34 35 import javax.swing.AbstractAction; 35 36 import javax.swing.JToggleButton; 36 import org.openstreetmap.josm.Main; 37 37 38 import org.openstreetmap.josm.plugins.mapdust.gui.observer.MapdustUpdateObservable; 38 39 import org.openstreetmap.josm.plugins.mapdust.gui.observer.MapdustUpdateObserver; 39 40 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBugFilter; 41 import org.openstreetmap.josm.spi.preferences.Config; 40 42 41 43 … … 72 74 JToggleButton btn = (JToggleButton) event.getSource(); 73 75 /* update the bugs */ 74 Main.pref.putBoolean("mapdust.showError", true);76 Config.getPref().putBoolean("mapdust.showError", true); 75 77 notifyObservers(null, false); 76 78 btn.setSelected(false); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteWorkOffline.java
r33027 r34528 35 35 import javax.swing.JToggleButton; 36 36 37 import org.openstreetmap.josm. Main;37 import org.openstreetmap.josm.gui.MainApplication; 38 38 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustActionUploader; 39 39 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustActionUploaderException; 40 40 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustGUI; 41 41 import org.openstreetmap.josm.plugins.mapdust.gui.value.MapdustPluginState; 42 import org.openstreetmap.josm.spi.preferences.Config; 42 43 43 44 /** … … 81 82 JToggleButton btn = (JToggleButton) event.getSource(); 82 83 if (getMapdustGUI() != null) { 83 String pluginState = Main.pref.get("mapdust.pluginState");84 String pluginState = Config.getPref().get("mapdust.pluginState"); 84 85 if (pluginState.equals(MapdustPluginState.ONLINE.getValue())) { 85 Main.pref.put("mapdust.pluginState",86 Config.getPref().put("mapdust.pluginState", 86 87 MapdustPluginState.OFFLINE.getValue()); 87 88 btn.setSelected(false); … … 92 93 String message = "Do you want to submit your changes "; 93 94 message += "to Mapdust?"; 94 int result = JOptionPane.showConfirmDialog(Main .parent,95 int result = JOptionPane.showConfirmDialog(MainApplication.getMainFrame(), 95 96 tr(message), tr(title), JOptionPane.YES_NO_OPTION); 96 97 if (result == JOptionPane.YES_OPTION) { … … 101 102 String errorMessage = "There was a Mapdust service"; 102 103 errorMessage += " error."; 103 JOptionPane.showMessageDialog(Main .parent,104 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 104 105 tr(errorMessage), tr("Error"), 105 106 JOptionPane.ERROR_MESSAGE); 106 107 } 107 108 } 108 Main.pref.put("mapdust.pluginState",109 Config.getPref().put("mapdust.pluginState", 109 110 MapdustPluginState.ONLINE.getValue()); 110 111 btn.setSelected(false); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/MapdustExecuteAction.java
r30532 r34528 31 31 import javax.swing.AbstractAction; 32 32 import javax.swing.JToggleButton; 33 33 34 import org.openstreetmap.josm.plugins.mapdust.gui.MapdustGUI; 34 35 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.AbstractDialog; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/show/MapdustShowAction.java
r25828 r34528 30 30 31 31 import javax.swing.AbstractAction; 32 32 33 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 33 34 import org.openstreetmap.josm.plugins.mapdust.gui.component.panel.MapdustButtonPanel; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/show/ShowCloseBugAction.java
r25828 r34528 30 30 31 31 import java.awt.event.ActionEvent; 32 32 33 import javax.swing.JMenuItem; 33 34 import javax.swing.JToggleButton; 35 34 36 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 35 37 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.ChangeBugStatusDialog; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/show/ShowCommentBugAction.java
r25828 r34528 30 30 31 31 import java.awt.event.ActionEvent; 32 32 33 import javax.swing.JMenuItem; 33 34 import javax.swing.JToggleButton; 35 34 36 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 35 37 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.CommentBugDialog; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/show/ShowFilterBugAction.java
r25591 r34528 34 34 35 35 import java.awt.event.ActionEvent; 36 36 37 import javax.swing.JMenuItem; 37 38 import javax.swing.JToggleButton; 38 import org.openstreetmap.josm.Main; 39 39 40 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 40 41 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.FilterBugDialog; 41 42 import org.openstreetmap.josm.plugins.mapdust.gui.component.panel.MapdustButtonPanel; 42 43 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBug; 44 import org.openstreetmap.josm.spi.preferences.Config; 43 45 44 46 … … 93 95 mapdustPlugin.getMapdustGUI().getSelectedBug(); 94 96 if (selectedBug != null) { 95 Main.pref.put("selectedBug.status", selectedBug.getStatus()97 Config.getPref().put("selectedBug.status", selectedBug.getStatus() 96 98 .getValue()); 97 99 } else { 98 Main.pref.put("selectedBug.status", "");100 Config.getPref().put("selectedBug.status", ""); 99 101 } 100 102 disableButtons(getButtonPanel()); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/show/ShowInvalidateBugAction.java
r25828 r34528 30 30 31 31 import java.awt.event.ActionEvent; 32 32 33 import javax.swing.JMenuItem; 33 34 import javax.swing.JToggleButton; 35 34 36 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 35 37 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.ChangeBugStatusDialog; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/show/ShowReOpenBugAction.java
r32787 r34528 30 30 31 31 import java.awt.event.ActionEvent; 32 32 33 import javax.swing.JMenuItem; 33 34 import javax.swing.JToggleButton; 35 34 36 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 35 37 import org.openstreetmap.josm.plugins.mapdust.gui.component.dialog.ChangeBugStatusDialog; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/dialog/AbstractDialog.java
r32787 r34528 31 31 import javax.swing.JDialog; 32 32 import javax.swing.JToggleButton; 33 33 34 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 34 35 -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/dialog/ChangeBugStatusDialog.java
r27874 r34528 33 33 import java.awt.Image; 34 34 import java.awt.Rectangle; 35 35 36 import javax.swing.AbstractAction; 36 37 import javax.swing.JButton; … … 41 42 import javax.swing.JToggleButton; 42 43 import javax.swing.WindowConstants; 43 import org.openstreetmap.josm.Main; 44 44 45 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 45 46 import org.openstreetmap.josm.plugins.mapdust.gui.action.adapter.WindowClose; … … 50 51 import org.openstreetmap.josm.plugins.mapdust.gui.component.panel.MapdustButtonPanel; 51 52 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.ComponentUtil; 53 import org.openstreetmap.josm.spi.preferences.Config; 52 54 import org.openstreetmap.josm.tools.ImageProvider; 53 55 … … 141 143 txtNickname = ComponentUtil.createJTextField(bounds); 142 144 /* get the nickname */ 143 String nickname = Main.pref.get("mapdust.nickname");145 String nickname = Config.getPref().get("mapdust.nickname"); 144 146 if (nickname.isEmpty()) { 145 147 /* if nickname is empty, then get JOSM username */ 146 nickname = Main.pref.get("mapdust.josmUserName");148 nickname = Config.getPref().get("mapdust.josmUserName"); 147 149 } 148 150 if (nickname != null && !nickname.isEmpty()) { -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/dialog/CommentBugDialog.java
r32787 r34528 33 33 import java.awt.Image; 34 34 import java.awt.Rectangle; 35 35 36 import javax.swing.JButton; 36 37 import javax.swing.JLabel; … … 40 41 import javax.swing.JToggleButton; 41 42 import javax.swing.WindowConstants; 42 import org.openstreetmap.josm.Main; 43 43 44 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 44 45 import org.openstreetmap.josm.plugins.mapdust.gui.action.adapter.WindowClose; … … 47 48 import org.openstreetmap.josm.plugins.mapdust.gui.component.panel.MapdustButtonPanel; 48 49 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.ComponentUtil; 50 import org.openstreetmap.josm.spi.preferences.Config; 49 51 import org.openstreetmap.josm.tools.ImageProvider; 50 52 … … 132 134 txtNickname = ComponentUtil.createJTextField(bounds); 133 135 /* get the nickname */ 134 String nickname = Main.pref.get("mapdust.nickname");136 String nickname = Config.getPref().get("mapdust.nickname"); 135 137 if (nickname.isEmpty()) { 136 138 /* if nickname is empty, get JOSM username */ 137 nickname = Main.pref.get("mapdust.josmUserName");139 nickname = Config.getPref().get("mapdust.josmUserName"); 138 140 } 139 141 if (nickname != null && !nickname.isEmpty()) { -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/dialog/CreateBugDialog.java
r30532 r34528 42 42 import javax.swing.WindowConstants; 43 43 44 import org.openstreetmap.josm.Main;45 44 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 46 45 import org.openstreetmap.josm.plugins.mapdust.gui.action.adapter.WindowClose; … … 51 50 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.ComponentUtil; 52 51 import org.openstreetmap.josm.plugins.mapdust.service.value.BugType; 52 import org.openstreetmap.josm.spi.preferences.Config; 53 53 import org.openstreetmap.josm.tools.ImageProvider; 54 54 … … 174 174 txtNickname = ComponentUtil.createJTextField(bounds); 175 175 /* get the nickname */ 176 String nickname = Main.pref.get("mapdust.nickname");176 String nickname = Config.getPref().get("mapdust.nickname"); 177 177 if (nickname.isEmpty()) { 178 178 /* if nickname is empty, get the JOSM username */ 179 nickname = Main.pref.get("mapdust.josmUserName");179 nickname = Config.getPref().get("mapdust.josmUserName"); 180 180 } 181 181 if (nickname != null && !nickname.isEmpty()) { -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/dialog/FilterBugDialog.java
r32787 r34528 39 39 import java.util.ArrayList; 40 40 import java.util.List; 41 41 42 import javax.swing.JButton; 42 43 import javax.swing.JLabel; 43 44 import javax.swing.JToggleButton; 44 45 import javax.swing.WindowConstants; 46 45 47 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 46 48 import org.openstreetmap.josm.plugins.mapdust.gui.action.adapter.WindowClose; … … 52 54 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.FilterCheckBox; 53 55 import org.openstreetmap.josm.plugins.mapdust.gui.value.MapdustRelevanceValue; 56 import org.openstreetmap.josm.plugins.mapdust.service.value.BugType; 54 57 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBugFilter; 55 58 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustRelevance; 56 59 import org.openstreetmap.josm.plugins.mapdust.service.value.Status; 57 import org.openstreetmap.josm.plugins.mapdust.service.value.BugType;58 60 import org.openstreetmap.josm.tools.ImageProvider; 59 61 -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustAddressPanel.java
r25828 r34528 32 32 import java.awt.Font; 33 33 import java.awt.GridLayout; 34 34 35 import javax.swing.JPanel; 36 35 37 import org.openstreetmap.josm.data.coor.LatLon; 36 38 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.ComponentUtil; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustBugDetailsPanel.java
r25828 r34528 30 30 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 import java.awt.Color; 33 34 import java.awt.Dimension; … … 37 38 import java.text.DateFormat; 38 39 import java.util.Locale; 40 39 41 import javax.swing.JEditorPane; 40 42 import javax.swing.JOptionPane; … … 43 45 import javax.swing.event.HyperlinkListener; 44 46 import javax.swing.text.html.HTMLEditorKit; 45 import org.openstreetmap.josm.Main; 47 48 import org.openstreetmap.josm.gui.MainApplication; 46 49 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.ComponentUtil; 47 50 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBug; … … 169 172 String errorMessage = "Error opening the MapDust bug "; 170 173 errorMessage += "details page"; 171 JOptionPane.showMessageDialog(Main .parent,174 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 172 175 tr(errorMessage), tr("Error"), 173 176 JOptionPane.ERROR_MESSAGE); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustBugListPanel.java
r33786 r34528 34 34 import java.util.Iterator; 35 35 import java.util.List; 36 36 37 import javax.swing.JList; 37 38 import javax.swing.JMenuItem; … … 42 43 import javax.swing.event.ListSelectionEvent; 43 44 import javax.swing.event.ListSelectionListener; 44 import org.openstreetmap.josm.Main; 45 45 46 import org.openstreetmap.josm.gui.MainApplication; 46 47 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; … … 58 59 import org.openstreetmap.josm.plugins.mapdust.gui.observer.MapdustBugDetailsObserver; 59 60 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBug; 61 import org.openstreetmap.josm.spi.preferences.Config; 60 62 61 63 … … 223 225 (MapdustBug) mapdustBugsJList.getSelectedValue(); 224 226 if (selectedBug != null) { 225 Main.pref.put("selectedBug.status", selectedBug.getStatus()227 Config.getPref().put("selectedBug.status", selectedBug.getStatus() 226 228 .getValue()); 227 229 if (selectedBug.getStatus().getKey().equals(1)) { -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustBugPropertiesPanel.java
r25828 r34528 30 30 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 import java.awt.BorderLayout; 33 34 import java.awt.Dimension; 35 34 36 import javax.swing.JOptionPane; 35 37 import javax.swing.JPanel; 36 38 import javax.swing.JScrollPane; 37 39 import javax.swing.JTabbedPane; 38 import org.openstreetmap.josm.Main; 40 39 41 import org.openstreetmap.josm.data.coor.LatLon; 42 import org.openstreetmap.josm.gui.MainApplication; 40 43 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.ComponentUtil; 41 44 import org.openstreetmap.josm.plugins.mapdust.gui.observer.MapdustBugDetailsObserver; … … 219 222 String errorMessage = "There was a MapDust service error durring "; 220 223 errorMessage += " the MapDust bug retrieve process."; 221 JOptionPane.showMessageDialog(Main .parent, tr(errorMessage),224 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr(errorMessage), 222 225 tr("Error"), JOptionPane.ERROR_MESSAGE); 223 226 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustButtonPanel.java
r25828 r34528 30 30 31 31 import java.awt.GridLayout; 32 32 33 import javax.swing.AbstractAction; 33 34 import javax.swing.JPanel; 34 35 import javax.swing.JToggleButton; 35 import org.openstreetmap.josm.Main; 36 36 37 import org.openstreetmap.josm.plugins.mapdust.MapdustPlugin; 37 38 import org.openstreetmap.josm.plugins.mapdust.gui.action.execute.ExecuteRefresh; … … 44 45 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.ComponentUtil; 45 46 import org.openstreetmap.josm.plugins.mapdust.gui.value.MapdustPluginState; 47 import org.openstreetmap.josm.spi.preferences.Config; 46 48 47 49 … … 104 106 String imagePath = ""; 105 107 if (btnWorkOffline == null) { 106 String pluginState = Main.pref.get("mapdust.pluginState");108 String pluginState = Config.getPref().get("mapdust.pluginState"); 107 109 if (pluginState.equals(MapdustPluginState.ONLINE.getValue())) { 108 110 text = "Work offline mode"; … … 174 176 text = "Refresh"; 175 177 imagePath = "dialogs/mapdust_refresh.png"; 176 String pluginState = Main.pref.get("mapdust.pluginState");178 String pluginState = Config.getPref().get("mapdust.pluginState"); 177 179 AbstractAction action = new ExecuteRefresh(); 178 180 ((ExecuteRefresh) action).addObserver(mapdustPlugin); … … 251 253 btnFilter.setSelected(false); 252 254 btnFilter.setFocusable(false); 253 String pluginState = Main.pref.get("mapdust.pluginState");255 String pluginState = Config.getPref().get("mapdust.pluginState"); 254 256 if (pluginState.equals(MapdustPluginState.ONLINE.getValue())) { 255 257 btnRefresh.setEnabled(true); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustCommentsPanel.java
r25591 r34528 35 35 import java.text.DateFormat; 36 36 import java.util.Locale; 37 37 38 import javax.swing.JPanel; 38 39 import javax.swing.JScrollPane; 39 40 import javax.swing.JTextArea; 41 40 42 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.ComponentUtil; 41 43 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustComment; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustDescriptionPanel.java
r25754 r34528 33 33 import java.awt.Dimension; 34 34 import java.awt.Font; 35 35 36 import javax.swing.JPanel; 36 37 import javax.swing.JScrollPane; 37 38 import javax.swing.JTextArea; 39 38 40 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.ComponentUtil; 39 41 -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustHelpPanel.java
r32787 r34528 30 30 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 import java.awt.BorderLayout; 33 34 import java.awt.Color; 34 35 import java.awt.Dimension; 35 36 import java.net.URI; 37 36 38 import javax.swing.JEditorPane; 37 39 import javax.swing.JOptionPane; … … 41 43 import javax.swing.event.HyperlinkListener; 42 44 import javax.swing.text.html.HTMLEditorKit; 43 import org.openstreetmap.josm.Main; 45 46 import org.openstreetmap.josm.gui.MainApplication; 44 47 import org.openstreetmap.josm.plugins.mapdust.gui.component.util.ComponentUtil; 45 48 import org.openstreetmap.josm.plugins.mapdust.util.Configuration; 49 import org.openstreetmap.josm.spi.preferences.Config; 46 50 import org.openstreetmap.josm.tools.OpenBrowser; 47 51 … … 85 89 } catch (Exception e) { 86 90 String errorMessage = "Error opening the MapDust wiki page"; 87 JOptionPane.showMessageDialog(Main .parent, tr(errorMessage),91 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr(errorMessage), 88 92 tr("Error"), JOptionPane.ERROR_MESSAGE); 89 93 } … … 101 105 Integer version; 102 106 try { 103 version = Integer.decode( Main.pref.get("mapdust.version"));107 version = Integer.decode(Config.getPref().get("mapdust.version")); 104 108 } catch (NumberFormatException e) { 105 109 version = null; … … 108 112 Integer localVersion; 109 113 try { 110 localVersion = Integer.decode( Main.pref.get("mapdust.localVersion"));114 localVersion = Integer.decode(Config.getPref().get("mapdust.localVersion")); 111 115 } catch (NumberFormatException e) { 112 116 localVersion = null; … … 118 122 sb.append("<i style='color:red;font-size:10px'>"); 119 123 if (version != null && localVersion != null && version <= localVersion) { 120 sb.append( Main.pref.get("mapdust.version")).append("</i>.</b><br>");124 sb.append(Config.getPref().get("mapdust.version")).append("</i>.</b><br>"); 121 125 } else { 122 sb.append( Main.pref.get("mapdust.localVersion"));126 sb.append(Config.getPref().get("mapdust.localVersion")); 123 127 sb.append("</i>. There is an update available. "); 124 128 sb.append("Please update to version "); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/util/http/HttpConnector.java
r33786 r34528 41 41 import java.util.Map; 42 42 43 import org.openstreetmap.josm.Main;44 43 import org.openstreetmap.josm.plugins.mapdust.util.retry.RetryAgent; 45 44 import org.openstreetmap.josm.plugins.mapdust.util.retry.RetrySetup; 46 45 import org.openstreetmap.josm.tools.Logging; 47 48 46 49 47 /** -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/util/retry/RetryAgent.java
r33786 r34528 28 28 package org.openstreetmap.josm.plugins.mapdust.util.retry; 29 29 30 import org.openstreetmap.josm.Main;31 30 import org.openstreetmap.josm.tools.Logging; 32 31
Note:
See TracChangeset
for help on using the changeset viewer.