Changeset 32787 in osm
- Timestamp:
- 2016-08-09T01:06:50+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/mapdust
- Files:
-
- 1 added
- 56 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapdust/.classpath
r32680 r32787 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <classpath> 3 4 <classpathentryincluding="conf/|images/" kind="src" path=""/>5 6 7 8 3 <classpathentry kind="src" path="src"/> 4 <classpathentry excluding="build|data" including="conf/|images/" kind="src" path=""/> 5 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> 6 <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> 7 <classpathentry combineaccessrules="false" kind="src" path="/JOSM-GSON"/> 8 <classpathentry kind="output" path="build/classes"/> 9 9 </classpath> -
applications/editors/josm/plugins/mapdust/.project
r32286 r32787 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name>JOSM-mapdust</name> 4 <comment></comment> 5 <projects> 6 </projects> 7 <buildSpec> 8 <buildCommand> 9 <name>org.eclipse.jdt.core.javabuilder</name> 10 <arguments> 11 </arguments> 12 </buildCommand> 13 <buildCommand> 14 <name>org.sonarlint.eclipse.core.sonarlintBuilder</name> 15 <arguments> 16 </arguments> 17 </buildCommand> 18 </buildSpec> 19 <natures> 20 <nature>org.eclipse.jdt.core.javanature</nature> 21 </natures> 3 <name>JOSM-mapdust</name> 4 <comment></comment> 5 <projects> 6 </projects> 7 <buildSpec> 8 <buildCommand> 9 <name>org.eclipse.jdt.core.javabuilder</name> 10 <arguments> 11 </arguments> 12 </buildCommand> 13 <buildCommand> 14 <name>org.sonarlint.eclipse.core.sonarlintBuilder</name> 15 <arguments> 16 </arguments> 17 </buildCommand> 18 <buildCommand> 19 <name>net.sf.eclipsecs.core.CheckstyleBuilder</name> 20 <arguments> 21 </arguments> 22 </buildCommand> 23 </buildSpec> 24 <natures> 25 <nature>org.eclipse.jdt.core.javanature</nature> 26 <nature>net.sf.eclipsecs.core.CheckstyleNature</nature> 27 </natures> 22 28 </projectDescription> -
applications/editors/josm/plugins/mapdust/README
r24514 r32787 2 2 in order to help to improve the Open Street Map. 3 3 The MapDust plugin contains the following features: 4 5 6 7 8 9 10 11 12 4 - viewing the Bug Reports on the current area 5 - viewing the details of a given Bug report 6 - creating a new Bug Report 7 - commenting a new Bug Report 8 - closing a given Bug Report 9 - re-opening a given Bug Report 10 - invalidating a given Bug Report 11 - working in online and offline mode 12 13 13 * This plugin was created by Beata Jancso <beata.jancso@skobbler.com> . 14 14 * This plugin is licensed under the GNU GPL v3 or later. See GPL-v3,0.txt for 15 15 more details. 16 16 -
applications/editors/josm/plugins/mapdust/build.xml
r32680 r32787 13 13 <import file="../build-common.xml"/> 14 14 15 15 <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}"> 16 16 <include name="gson.jar"/> 17 17 </fileset> -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/MapdustLayer.java
r25828 r32787 279 279 DateFormat df = DateFormat.getDateInstance(DateFormat.DEFAULT, 280 280 Locale.getDefault()); 281 String text = "<html><b>Type:</b> " + bug.getType().getValue() 281 String text = "<html><b>Type:</b> " + bug.getType().getValue(); 282 282 text += "<br/>"; 283 283 text += "<b>Status:</b> " + bug.getStatus().getValue() + "<br/>"; … … 287 287 text += "<b>Created on:</b> " + df.format(bug.getDateCreated()); 288 288 text += "<br/>"; 289 text += "<b>Last modified on:</b> "+ df.format(bug.getDateUpdated()) 289 text += "<b>Last modified on:</b> "+ df.format(bug.getDateUpdated()); 290 290 text += "<br/>"; 291 291 text += "<b>Comments:</b> " + bug.getNumberOfComments(); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/MapdustPlugin.java
r32473 r32787 133 133 Main.pref.put("mapdust.showError", true); 134 134 Main.pref.put("mapdust.version", getPluginInformation().version); 135 Main.pref.put("mapdust.localVersion", getPluginInformation().localversion);135 Main.pref.put("mapdust.localVersion", getPluginInformation().localversion); 136 136 Main.pref.addPreferenceChangeListener(this); 137 137 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/MapdustActionUploader.java
r24514 r32787 42 42 * @version $Revision$ 43 43 */ 44 public class MapdustActionUploader {44 public final class MapdustActionUploader { 45 45 46 46 /** The <code>MapdustActionUploader</code> instance */ -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/MapdustGUI.java
r30737 r32787 248 248 } 249 249 List<MapdustAction> actionList = actionPanel != null ? 250 actionPanel.getActionList() : new ArrayList< MapdustAction>();250 actionPanel.getActionList() : new ArrayList<>(); 251 251 252 252 /* update panels */ -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/adapter/WindowClose.java
r30532 r32787 63 63 * @param btnPanel The button panel 64 64 */ 65 public WindowClose(AbstractDialog dialog, MapdustButtonPanel btnPanel 65 public WindowClose(AbstractDialog dialog, MapdustButtonPanel btnPanel) { 66 66 this.dialog = dialog; 67 67 this.btnPanel = btnPanel; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteCloseBug.java
r30737 r32787 130 130 mapdustGUI.enableBtnPanel(true); 131 131 issueDialog.dispose(); 132 if (getMapdustGUI().getActionPanel() != null) {132 if (getMapdustGUI().getActionPanel() != null) { 133 133 notifyObservers(mapdustAction); 134 134 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteFilterBug.java
r30737 r32787 98 98 boolean descr = dialog.isDescrFilterChecked(); 99 99 MapdustRelevance minValue = dialog.getSelectedMinRelevance(); 100 MapdustRelevance maxValue = dialog.getSelectedMaxRelevance();100 MapdustRelevance maxValue = dialog.getSelectedMaxRelevance(); 101 101 /* notifies the observers about the filters */ 102 102 notifyObservers(new MapdustBugFilter(statuses, types, descr, -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteRefresh.java
r30737 r32787 58 58 59 59 /** 60 * Builds a <code>EexecuteRefresh< code> object60 * Builds a <code>EexecuteRefresh</code> object 61 61 */ 62 62 public ExecuteRefresh() {} -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/execute/ExecuteWorkOffline.java
r30737 r32787 109 109 } catch (MapdustActionUploaderException e) { 110 110 String errorMessage = "There was a Mapdust service"; 111 errorMessage +=" error.";111 errorMessage += " error."; 112 112 JOptionPane.showMessageDialog(Main.parent, 113 113 tr(errorMessage), tr("Error"), -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/action/show/ShowReOpenBugAction.java
r25828 r32787 80 80 btn = (JToggleButton) event.getSource(); 81 81 btn.setSelected(true); 82 } if (event.getSource() instanceof JMenuItem){ 82 } 83 if (event.getSource() instanceof JMenuItem) { 83 84 getButtonPanel().getBtnReOpenBugReport().setSelected(true); 84 85 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/dialog/AbstractDialog.java
r25591 r32787 71 71 this.firedButton = firedButton; 72 72 } 73 74 73 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/dialog/CommentBugDialog.java
r25828 r32787 244 244 return btnOk; 245 245 } 246 247 246 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/dialog/FilterBugDialog.java
r30737 r32787 66 66 */ 67 67 public class FilterBugDialog extends AbstractDialog { 68 org.openstreetmap.josm.plugins.mapdust.service.value.BugType ttt =org.openstreetmap.josm.plugins.mapdust.service.value.BugType.WRONG_TURN;68 org.openstreetmap.josm.plugins.mapdust.service.value.BugType ttt = org.openstreetmap.josm.plugins.mapdust.service.value.BugType.WRONG_TURN; 69 69 70 70 /** The serial version UID */ … … 292 292 25)); 293 293 /* oneway_road type */ 294 filterTypes[2] = 294 filterTypes[2] = new FilterCheckBox(BugType.MISSING_STREET.getKey(), 295 295 new Rectangle(110, 125, 20, 25), "dialogs/missing_street.png", 296 296 BugType.MISSING_STREET.getValue(), new Rectangle(130, 125, 150, -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/model/CommentListModel.java
r30532 r32787 90 90 @Override 91 91 public void addListDataListener(ListDataListener l) {} 92 93 92 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustActionPanel.java
r30532 r32787 84 84 * @param mapdustPlugin The <code>MapdustPlugin</code> object 85 85 */ 86 private void addComponents(List<MapdustAction> list, 87 MapdustPlugin mapdustPlugin) { 86 private void addComponents(List<MapdustAction> list, MapdustPlugin mapdustPlugin) { 88 87 /* create components */ 89 AbstractAction action = new ExecuteActionList 90 (mapdustPlugin.getMapdustGUI()); 88 AbstractAction action = new ExecuteActionList(mapdustPlugin.getMapdustGUI()); 91 89 JToggleButton btnUpload = ComponentUtil.createJButton("Upload list data", 92 90 null, null, action); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustBugListPanel.java
r30737 r32787 163 163 String text = " No bugs in the current view for the selected"; 164 164 text += " filters!"; 165 JList<String> textJList = new JList<>(new String[] { text});165 JList<String> textJList = new JList<>(new String[] {text}); 166 166 textJList.setBorder(new LineBorder(Color.black, 1, false)); 167 167 textJList.setCellRenderer(new BugListCellRenderer()); … … 192 192 String text = " No bugs in the current view for the selected"; 193 193 text += " filters!"; 194 JList<String> textJList = new JList<>(new String[] { text});194 JList<String> textJList = new JList<>(new String[] {text}); 195 195 textJList.setBorder(new LineBorder(Color.black, 1, false)); 196 196 textJList.setCellRenderer(new BugListCellRenderer()); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/panel/MapdustHelpPanel.java
r30502 r32787 100 100 private String buildText() { 101 101 Integer version; 102 try {102 try { 103 103 version = Integer.decode(Main.pref.get("mapdust.version")); 104 } catch (NumberFormatException e) {104 } catch (NumberFormatException e) { 105 105 version = null; 106 106 } 107 107 108 108 Integer localVersion; 109 try {110 localVersion = Integer.decode(Main.pref.get("mapdust.localVersion"));109 try { 110 localVersion = Integer.decode(Main.pref.get("mapdust.localVersion")); 111 111 } catch (NumberFormatException e) { 112 112 localVersion = null; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/renderer/BugListCellRenderer.java
r30532 r32787 63 63 public Component getListCellRendererComponent(JList<?> list, Object value, 64 64 int index, boolean isSelected, boolean hasFocus) { 65 JLabel label = (JLabel) super.getListCellRendererComponent(list, value,66 index, isSelected, hasFocus);65 JLabel label = (JLabel) super.getListCellRendererComponent(list, value, 66 index, isSelected, hasFocus); 67 67 if (value instanceof MapdustBug) { 68 68 /* show the MapdustBug in the list */ … … 78 78 text += mapdustBug.getType().getValue(); 79 79 if (mapdustBug.getAddress() != null) { 80 String addressStr =mapdustBug.getAddress().toString();80 String addressStr = mapdustBug.getAddress().toString(); 81 81 if (!addressStr.trim().isEmpty()) { 82 82 text += " (" + mapdustBug.getAddress().toString() + " )"; … … 85 85 DateFormat df = DateFormat.getDateInstance(DateFormat.DEFAULT, 86 86 Locale.getDefault()); 87 text += " last modified on ";87 text += " last modified on "; 88 88 text += df.format(mapdustBug.getDateUpdated()); 89 89 label.setText(text); … … 91 91 label.setSize(200, 20); 92 92 } 93 if (value instanceof String) {93 if (value instanceof String) { 94 94 /* show default text in the list */ 95 String text =(String)value;95 String text = (String) value; 96 96 label.setText(text); 97 97 label.setFont(new Font("Times New Roman", Font.BOLD, 12)); -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/renderer/ComboBoxRenderer.java
r30532 r32787 68 68 label.setIcon(icon); 69 69 label.setText(text); 70 label.setFont( 70 label.setFont(new Font("Times New Roman", Font.BOLD, 12)); 71 71 return label; 72 72 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/slider/RelevanceSlider.java
r30737 r32787 158 158 */ 159 159 public int getUpperValue() { 160 if (upperValue <lowerValue){161 upperValue =lowerValue;160 if (upperValue < lowerValue) { 161 upperValue = lowerValue; 162 162 } 163 163 return upperValue; … … 183 183 public void setExtent(int extent) { 184 184 super.setExtent(extent); 185 this.upperValue =getLowerValue()+getExtent();185 this.upperValue = getLowerValue()+getExtent(); 186 186 } 187 188 187 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/slider/RelevanceSliderUI.java
r25828 r32787 261 261 incr = 1; 262 262 } 263 int delta = incr 263 int delta = incr * ((direction > 0) ? POSITIVE_SCROLL 264 264 : NEGATIVE_SCROLL); 265 265 if (isUpperSelected) { … … 599 599 } 600 600 } 601 602 601 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/component/util/ComponentUtil.java
r30532 r32787 72 72 * @version $Revision$ 73 73 */ 74 public class ComponentUtil { 75 74 public final class ComponentUtil { 75 76 private ComponentUtil() { 77 // Hide default constructor for utilities classes 78 } 79 76 80 /** 77 81 * Creates a <code>JLabel</code> object with the given properties. -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/observer/MapdustActionObservable.java
r25591 r32787 28 28 package org.openstreetmap.josm.plugins.mapdust.gui.observer; 29 29 30 31 30 import org.openstreetmap.josm.plugins.mapdust.gui.value.MapdustAction; 32 33 31 34 32 /** … … 45 43 * @param observer The <code>MapdustActionObserver</code> object 46 44 */ 47 publicvoid addObserver(MapdustActionObserver observer);45 void addObserver(MapdustActionObserver observer); 48 46 49 47 /** … … 52 50 * @param observer The <code>MapdustActionObserver</code> object 53 51 */ 54 publicvoid removeObserver(MapdustActionObserver observer);52 void removeObserver(MapdustActionObserver observer); 55 53 56 54 /** … … 60 58 * @param mapdustAction The <code>MapdustAction</code> object 61 59 */ 62 publicvoid notifyObservers(MapdustAction mapdustAction);60 void notifyObservers(MapdustAction mapdustAction); 63 61 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/observer/MapdustActionObserver.java
r25591 r32787 28 28 package org.openstreetmap.josm.plugins.mapdust.gui.observer; 29 29 30 31 30 import org.openstreetmap.josm.plugins.mapdust.gui.value.MapdustAction; 32 33 31 34 32 /** … … 45 43 * @param mapdustAction The <code>MapdustAction</code> list 46 44 */ 47 publicvoid addAction(MapdustAction mapdustAction);45 void addAction(MapdustAction mapdustAction); 48 46 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/observer/MapdustBugDetailsObservable.java
r25591 r32787 28 28 package org.openstreetmap.josm.plugins.mapdust.gui.observer; 29 29 30 31 30 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBug; 32 33 31 34 32 /** … … 45 43 * @param observer The <code>MapdustBugDetailsObserver</code> object 46 44 */ 47 publicvoid addObserver(MapdustBugDetailsObserver observer);45 void addObserver(MapdustBugDetailsObserver observer); 48 46 49 47 /** … … 52 50 * @param observer The <code>MapdustBugDetailsObserver</code> object 53 51 */ 54 publicvoid removeObserver(MapdustBugDetailsObserver observer);52 void removeObserver(MapdustBugDetailsObserver observer); 55 53 56 54 /** … … 60 58 * @param mapdustBug The <code>MapdustBug</code> object 61 59 */ 62 public void notifyObservers(MapdustBug mapdustBug); 63 60 void notifyObservers(MapdustBug mapdustBug); 64 61 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/observer/MapdustBugDetailsObserver.java
r25591 r32787 28 28 package org.openstreetmap.josm.plugins.mapdust.gui.observer; 29 29 30 31 30 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBug; 32 33 31 34 32 /** … … 46 44 * @param mapdustBug The <code>MapdustBug</code> object 47 45 */ 48 public void showDetails(MapdustBug mapdustBug); 49 46 void showDetails(MapdustBug mapdustBug); 50 47 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/observer/MapdustBugObservable.java
r25591 r32787 31 31 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBug; 32 32 33 34 33 /** 35 34 * The observable interface for the <code>MapdustBug</code> object. Observes the … … 46 45 * @param observer The <code>MapdustBugObserver</code> object 47 46 */ 48 publicvoid addObserver(MapdustBugObserver observer);47 void addObserver(MapdustBugObserver observer); 49 48 50 49 /** … … 53 52 * @param observer The <code>MapdustBugObserver</code> object 54 53 */ 55 publicvoid removeObserver(MapdustBugObserver observer);54 void removeObserver(MapdustBugObserver observer); 56 55 57 56 /** … … 61 60 * @param mapdustBug The <code>MapdustBug</code> object 62 61 */ 63 public void notifyObservers(MapdustBug mapdustBug); 64 62 void notifyObservers(MapdustBug mapdustBug); 65 63 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/observer/MapdustBugObserver.java
r25591 r32787 28 28 package org.openstreetmap.josm.plugins.mapdust.gui.observer; 29 29 30 31 30 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBug; 32 33 31 34 32 /** … … 45 43 * @param mapdustBug A <code>MapdustBug</code> object 46 44 */ 47 public void changedData(MapdustBug mapdustBug); 48 45 void changedData(MapdustBug mapdustBug); 49 46 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/observer/MapdustUpdateObservable.java
r25591 r32787 35 35 import org.openstreetmap.josm.plugins.mapdust.service.value.MapdustBugFilter; 36 36 37 38 37 /** 39 38 * The observable interface for the MapDust bug update action. … … 49 48 * @param observer The <code>MapdustUpdateObserver</code> object 50 49 */ 51 publicvoid addObserver(MapdustUpdateObserver observer);50 void addObserver(MapdustUpdateObserver observer); 52 51 53 52 /** … … 56 55 * @param observer The <code>MapdustUpdateObserver</code> object 57 56 */ 58 publicvoid removeObserver(MapdustUpdateObserver observer);57 void removeObserver(MapdustUpdateObserver observer); 59 58 60 59 /** … … 65 64 * or not. 66 65 */ 67 public void notifyObservers(MapdustBugFilter filter, boolean initialUpdate); 68 66 void notifyObservers(MapdustBugFilter filter, boolean initialUpdate); 69 67 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/observer/MapdustUpdateObserver.java
r25754 r32787 55 55 * or not. 56 56 */ 57 public void update(MapdustBugFilter filter, boolean initialUpdate); 58 57 void update(MapdustBugFilter filter, boolean initialUpdate); 59 58 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/value/MapdustPluginState.java
r25591 r32787 51 51 * @param value The value of the object 52 52 */ 53 privateMapdustPluginState(String value) {53 MapdustPluginState(String value) { 54 54 this.value = value; 55 55 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/value/MapdustRelevanceValue.java
r30737 r32787 44 44 * @version $Revision$ 45 45 */ 46 public class MapdustRelevanceValue {46 public final class MapdustRelevanceValue { 47 47 48 48 /** The low MapDust bug relevance value */ -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/value/MapdustServiceCommand.java
r25591 r32787 53 53 * Builds a new <code>MapdustServiceCommand</code> object 54 54 */ 55 privateMapdustServiceCommand() {}55 MapdustServiceCommand() {} 56 56 57 57 /** … … 61 61 * @param value The value 62 62 */ 63 privateMapdustServiceCommand(String key, String value) {63 MapdustServiceCommand(String key, String value) { 64 64 this.key = key; 65 65 this.value = value; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/MapdustConverter.java
r30737 r32787 52 52 * 53 53 */ 54 class MapdustConverter { 54 final class MapdustConverter { 55 56 private MapdustConverter() { 57 // Hide default constructor for utilities classes 58 } 55 59 56 60 /** -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/MapdustConnector.java
r30737 r32787 544 544 } 545 545 } 546 547 546 548 547 private <T> T parseResponse(String httpResponse, Class<T> responseType) 549 548 throws MapdustConnectorException { -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/MapdustConnectorException.java
r25591 r32787 77 77 super(message, cause); 78 78 } 79 80 79 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/response/GeneralContent.java
r30500 r32787 53 53 this.id = id; 54 54 } 55 56 55 57 56 public Long getId() { 58 57 return id; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/response/Geometry.java
r30500 r32787 28 28 package org.openstreetmap.josm.plugins.mapdust.service.connector.response; 29 29 30 31 30 /** 32 31 * Defines the attributes of the geometry object. … … 38 37 39 38 /** The array of coordinates */ 40 private Double coordinates[];39 private Double[] coordinates; 41 40 42 41 /** … … 53 52 this.coordinates = coordinates; 54 53 } 55 56 54 57 55 public Double[] getCoordinates() { 58 56 return coordinates; 59 57 } 60 61 58 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/response/MapdustBugContent.java
r30500 r32787 60 60 this.properties = properties; 61 61 } 62 63 62 64 63 public Geometry getGeometry() { 65 64 return geometry; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/response/MapdustBugProperties.java
r30500 r32787 132 132 this.comments = comments; 133 133 } 134 135 134 136 135 public Date getDateCreated() { 137 136 return dateCreated; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/response/MapdustCommentProperties.java
r30500 r32787 82 82 this.source = source; 83 83 } 84 85 84 86 85 public Date getDateCreated() { … … 91 90 return comment; 92 91 } 93 94 92 95 93 public String getNickname() { -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/response/MapdustGetBugResponse.java
r30500 r32787 55 55 * Builds a <code>MapdustGetBugResponse</code> object 56 56 * 57 * @param geometry The <code>Geometry</code object57 * @param geometry The <code>Geometry</code> object 58 58 * @param id The id of the object 59 59 * @param properties The <code>MapdustBugProperties</code> object … … 65 65 this.properties = properties; 66 66 } 67 68 67 69 68 public Geometry getGeometry() { -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/response/MapdustGetBugsResponse.java
r30500 r32787 54 54 this.features = features; 55 55 } 56 57 56 58 57 public MapdustBugContent[] getFeatures() { 59 58 return features; 60 59 } 61 62 60 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/response/MapdustGetResponse.java
r30500 r32787 58 58 this.paging = paging; 59 59 } 60 61 60 62 61 public Paging getPaging() { 63 62 return paging; 64 63 } 65 66 64 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/connector/response/MapdustPostResponse.java
r30500 r32787 28 28 package org.openstreetmap.josm.plugins.mapdust.service.connector.response; 29 29 30 31 30 /** 32 31 * Represents a response object for the HTTP POST method. … … 55 54 this.id = id; 56 55 } 57 58 56 59 57 public Long getId() { -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/value/MapdustResponseStatusCode.java
r24514 r32787 88 88 * @param description The description of the response 89 89 */ 90 privateMapdustResponseStatusCode(Integer statusCode, Integer apiCode,90 MapdustResponseStatusCode(Integer statusCode, Integer apiCode, 91 91 String description) { 92 92 this.statusCode = statusCode; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/value/RelevanceRange.java
r30737 r32787 45 45 * @version $Revision$ 46 46 */ 47 public class RelevanceRange implements Serializable, Comparable<RelevanceRange> {47 public final class RelevanceRange implements Serializable, Comparable<RelevanceRange> { 48 48 49 49 /** The serial version UID */ -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/util/Configuration.java
r24733 r32787 39 39 * @author Bea 40 40 */ 41 public class Configuration {41 public final class Configuration { 42 42 43 43 /** The instance of this singleton object type */ -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/util/http/HttpConnector.java
r30738 r32787 34 34 import java.io.InputStreamReader; 35 35 import java.io.OutputStreamWriter; 36 import java.io.UnsupportedEncodingException; 36 37 import java.net.HttpURLConnection; 37 38 import java.net.URL; … … 39 40 import java.util.Map; 40 41 42 import org.openstreetmap.josm.Main; 41 43 import org.openstreetmap.josm.plugins.mapdust.util.retry.RetryAgent; 42 44 import org.openstreetmap.josm.plugins.mapdust.util.retry.RetrySetup; … … 230 232 buf.append(key).append("=").append(URLEncoder.encode( 231 233 postParameters.get(key), "utf-8")); 232 } catch (java.io.UnsupportedEncodingException neverHappen) {} 234 } catch (UnsupportedEncodingException e) { 235 Main.error(e); 236 } 233 237 i++; 234 238 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/util/retry/RetryAgent.java
r24514 r32787 28 28 package org.openstreetmap.josm.plugins.mapdust.util.retry; 29 29 30 import org.openstreetmap.josm.Main; 30 31 31 32 /** … … 37 38 * the cleanup method. 38 39 * 40 * @author rrainn 39 41 * @param <T> the type of the object returned by the target method 40 * @author rrainn41 42 */ 42 43 public abstract class RetryAgent<T> { … … 129 130 Thread.sleep(delay); 130 131 } catch (InterruptedException e1) { 131 // LOG.error(e1.getMessage(),e1);132 Main.error(e1); 132 133 // throw e; 133 134 } … … 139 140 } catch (Exception e) { 140 141 /* if it can't be cleaned up, there's nothing to do */ 141 // LOG.error("Could not clean up", e);142 Main.error("Could not clean up", e); 142 143 } 143 144 } … … 172 173 Thread.sleep(delay); 173 174 } catch (InterruptedException e1) { 174 // LOG.error(e1.getMessage(),e1);175 Main.error(e1); 175 176 throw e; 176 177 } … … 182 183 } catch (Exception e) { 183 184 /* if it can't be cleaned up, there's nothing to do */ 184 // LOG.error("Could not clean up", e);185 Main.error("Could not clean up", e); 185 186 } 186 187 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/util/retry/RetryMode.java
r24514 r32787 28 28 package org.openstreetmap.josm.plugins.mapdust.util.retry; 29 29 30 31 30 /** 32 31 * The mode in which the {@link RetryAgent} should work. … … 56 55 * @param name the name of the mode 57 56 */ 58 privateRetryMode(String name) {57 RetryMode(String name) { 59 58 this.name = name; 60 59 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/util/retry/RetrySetup.java
r25127 r32787 68 68 * Returns the method for computing time intervals between attempts. 69 69 * 70 * @return the retry mode 70 71 * @see RetryMode 71 * @return the retry mode72 72 */ 73 73 public RetryMode getMode() {
Note:
See TracChangeset
for help on using the changeset viewer.