Changeset 2990 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2010-02-15T09:03:57+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 47 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r2702 r2990 785 785 * @since 1.1 786 786 */ 787 public TransferableObject( ClassdataClass, Fetcher fetcher )787 public TransferableObject(Class<?> dataClass, Fetcher fetcher ) 788 788 { this.fetcher = fetcher; 789 789 this.customFlavor = new java.awt.datatransfer.DataFlavor( dataClass, MIME_TYPE ); -
trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java
r2850 r2990 46 46 47 47 /** 48 * Replies the unique instance of t ehJOSM user identity manager49 * 50 * @return the unique instance of t ehJOSM user identity manager48 * Replies the unique instance of the JOSM user identity manager 49 * 50 * @return the unique instance of the JOSM user identity manager 51 51 */ 52 52 static public JosmUserIdentityManager getInstance() { -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r2980 r2990 24 24 */ 25 25 public abstract class PleaseWaitRunnable implements Runnable, CancelListener { 26 @SuppressWarnings("unused") 26 27 private final static Logger logger = Logger.getLogger(PleaseWaitRunnable.class.getName()); 27 28 -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListTableCellRenderer.java
r2846 r2990 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.conflict.pair.nodes; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.awt.Color; … … 167 165 reset(); 168 166 switch(column) { 169 170 171 172 173 174 175 176 177 178 179 180 181 167 case 0: 168 renderRowId(getModel(table),row, isSelected); 169 break; 170 case 1: 171 if (node == null) { 172 renderEmptyRow(); 173 } else { 174 renderNode(getModel(table), node, row, isSelected); 175 } 176 break; 177 default: 178 // should not happen 179 throw new RuntimeException(MessageFormat.format("Unexpected column index. Got {0}.", column)); 182 180 } 183 181 return this; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberTableCellRenderer.java
r2512 r2990 4 4 import java.awt.Color; 5 5 import java.awt.Component; 6 import java.text.DecimalFormat;7 6 import java.util.ArrayList; 8 7 import java.util.Collections; … … 27 26 */ 28 27 public class RelationMemberTableCellRenderer extends JLabel implements TableCellRenderer { 29 private final static DecimalFormat COORD_FORMATTER = new DecimalFormat("###0.0000");30 28 public final static Color BGCOLOR_SELECTED = new Color(143,170,255); 31 29 public final static Color BGCOLOR_EMPTY_ROW = new Color(234,234,234); … … 194 192 renderForeground(getModel(table), member, row, column, isSelected); 195 193 switch(column) { 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 194 case 0: 195 renderRowId(row); 196 break; 197 case 1: 198 if (member == null) { 199 renderEmptyRow(); 200 } else { 201 renderRole(member); 202 } 203 break; 204 case 2: 205 if (member == null) { 206 renderEmptyRow(); 207 } else { 208 renderPrimitive(member); 209 } 210 break; 211 default: 212 // should not happen 215 213 } 216 214 return this; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeTableCellRenderer.java
r2846 r2990 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.conflict.pair.tags; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.awt.Color; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueResolutionDecision.java
r2846 r2990 8 8 import java.util.Collection; 9 9 import java.util.Collections; 10 import java.util.Iterator;11 10 import java.util.List; 12 11 … … 134 133 public String getChosenValue() throws IllegalStateException { 135 134 switch(type) { 136 137 138 139 135 case UNDECIDED: throw new IllegalStateException(tr("Not decided yet.")); 136 case KEEP_ONE: return value; 137 case KEEP_NONE: return null; 138 case KEEP_ALL: return tags.getJoinedValues(getKey()); 140 139 } 141 140 // should not happen … … 282 281 public Tag getResolution() { 283 282 switch(type) { 284 285 286 287 283 case KEEP_ALL: return new Tag(getKey(), tags.getJoinedValues(getKey())); 284 case KEEP_ONE: return new Tag(getKey(),value); 285 case KEEP_NONE: return new Tag(getKey(), ""); 286 case UNDECIDED: return null; 288 287 } 289 288 return null; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java
r2512 r2990 433 433 434 434 static private class StatisticsInfoRenderer extends JLabel implements TableCellRenderer { 435 @SuppressWarnings("unused") 435 436 static private final Logger logger = Logger.getLogger(StatisticsInfoRenderer.class.getName()); 436 437 … … 461 462 String msg = ""; 462 463 switch(type) { 463 464 465 464 case NODE: msg = trn("{0} node", "{0} nodes", numPrimitives,numPrimitives); break; 465 case WAY: msg = trn("{0} way", "{0} ways", numPrimitives, numPrimitives); break; 466 case RELATION: msg = trn("{0} relation", "{0} relations", numPrimitives, numPrimitives); break; 466 467 } 467 468 text = text.equals("") ? msg : text + ", " + msg; … … 488 489 489 490 switch(column) { 490 491 492 491 case 0: renderNumTags(info); break; 492 case 1: renderFrom(info); break; 493 case 2: renderTo(info); break; 493 494 } 494 495 } -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionType.java
r2512 r2990 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import javax.swing.DefaultComboBoxModel;7 import javax.swing.JComboBox;8 6 import javax.swing.JLabel; 9 7 -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java
r2846 r2990 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.conflict.tags; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.beans.PropertyChangeListener; -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentTableModel.java
r2711 r2990 136 136 */ 137 137 static private class ChangesetContentEntry implements ChangesetDataSetEntry{ 138 private ChangesetModificationType modificationType;139 private HistoryOsmPrimitive primitive;138 private final ChangesetModificationType modificationType; 139 private final HistoryOsmPrimitive primitive; 140 140 141 141 public ChangesetContentEntry(ChangesetModificationType modificationType, HistoryOsmPrimitive primitive) { … … 145 145 146 146 public ChangesetContentEntry(ChangesetDataSetEntry entry) { 147 this.modificationType = entry.getModificationType(); 148 this.primitive = entry.getPrimitive(); 147 this(entry.getModificationType(), entry.getPrimitive()); 149 148 } 150 149 … … 152 151 return modificationType; 153 152 } 154 public void setModificationType(ChangesetModificationType modificationType) {155 this.modificationType = modificationType;156 }157 153 public HistoryOsmPrimitive getPrimitive() { 158 154 return primitive; 159 155 } 160 public void setPrimitive(HistoryOsmPrimitive primitive) {161 this.primitive = primitive;162 }163 156 } 164 157 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java
r2847 r2990 1086 1086 1087 1087 public Date getDate() { 1088 for (int i = 0; i< 4; i++) { 1088 for (int format: new int[] {DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, DateFormat.FULL}) { 1089 DateFormat df = DateFormat.getDateInstance(format); 1089 1090 try { 1090 DateFormat df = null;1091 switch(i) {1092 case 0: df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()); break;1093 case 1: df = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault()); break;1094 case 2: df = DateFormat.getDateInstance(DateFormat.LONG, Locale.getDefault()); break;1095 case 3: df = DateFormat.getDateInstance(DateFormat.FULL,Locale.getDefault()); break;1096 }1097 1091 return df.parse(getComponent().getText()); 1098 } catch (ParseException e) {1099 continue;1092 } catch (ParseException e) { 1093 // Try next format 1100 1094 } 1101 1095 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r2986 r2990 77 77 */ 78 78 public class GenericRelationEditor extends RelationEditor { 79 @SuppressWarnings("unused") 79 80 static private final Logger logger = Logger.getLogger(GenericRelationEditor.class.getName()); 80 81 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberRoleCellEditor.java
r2512 r2990 15 15 16 16 public class MemberRoleCellEditor extends AbstractCellEditor implements TableCellEditor { 17 18 /** the logger object */ 17 @SuppressWarnings("unused") 19 18 static private Logger logger = Logger.getLogger(MemberRoleCellEditor.class.getName()); 20 19 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableLinkedCellRenderer.java
r2512 r2990 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.dialogs.relation; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.awt.Color; … … 11 9 import javax.swing.JTable; 12 10 11 import org.openstreetmap.josm.gui.dialogs.relation.WayConnectionType.Direction; 13 12 import org.openstreetmap.josm.tools.ImageProvider; 14 import org.openstreetmap.josm.gui.dialogs.relation.WayConnectionType.Direction;15 13 16 14 public class MemberTableLinkedCellRenderer extends MemberTableCellRenderer { … … 38 36 public void paintComponent(Graphics g) { 39 37 super.paintComponent(g); 40 if (value == null || !value.isValid()) {38 if (value == null || !value.isValid()) 41 39 return; 42 }43 40 44 41 int ymax=this.getSize().height - 1; … … 102 99 Image arrow = null; 103 100 switch (value.direction) { 104 105 106 107 108 109 101 case FORWARD: 102 arrow = arrowDown; 103 break; 104 case BACKWARD: 105 arrow = arrowUp; 106 break; 110 107 } 111 108 if ((arrow != null) && (value.linkPrev || value.linkNext)) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTree.java
r2847 r2990 35 35 */ 36 36 public class RelationTree extends JTree { 37 @SuppressWarnings("unused") 37 38 static private final Logger logger = Logger.getLogger(RelationTree.class.getName()); 38 39 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/WayConnectionType.java
r2512 r2990 2 2 package org.openstreetmap.josm.gui.dialogs.relation; 3 3 4 import static org.openstreetmap.josm.gui.dialogs.relation.WayConnectionType.Direction.NONE; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 import static org.openstreetmap.josm.gui.dialogs.relation.WayConnectionType.Direction.*;7 6 8 7 public class WayConnectionType { … … 32 31 return this == ROUNDABOUT_RIGHT || this == ROUNDABOUT_LEFT; 33 32 } 34 } ;33 } 35 34 36 35 /** True, if the element is part of a closed loop of ways. */ … … 66 65 67 66 public String getToolTip() { 68 if (!isValid()) {67 if (!isValid()) 69 68 return ""; 70 } 71 else if (linkPrev && linkNext) { 69 else if (linkPrev && linkNext) 72 70 return tr("way is connected"); 73 } 74 else if (linkPrev) { 71 else if (linkPrev) 75 72 return tr("way is connected to previous relation member"); 76 } 77 else if (linkNext) { 73 else if (linkNext) 78 74 return tr("way is connected to next relation member"); 79 } 80 else { 75 else 81 76 return tr("way is not connected to previous or next relation member"); 82 }//FIXME: isLoop & direction83 77 } 84 78 } -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r2824 r2990 51 51 */ 52 52 public class DownloadDialog extends JDialog { 53 @SuppressWarnings("unused") 53 54 static private final Logger logger = Logger.getLogger(DownloadDialog.class.getName()); 54 55 -
trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java
r2850 r2990 4 4 5 5 import java.awt.Color; 6 import java.awt.Graphics;7 import java.awt.Graphics2D;8 6 import java.awt.GridBagConstraints; 9 7 import java.awt.GridBagLayout; -
trunk/src/org/openstreetmap/josm/gui/history/TagTableCellRenderer.java
r2512 r2990 19 19 */ 20 20 public class TagTableCellRenderer extends JLabel implements TableCellRenderer { 21 21 @SuppressWarnings("unused") 22 22 static private Logger logger = Logger.getLogger(TagTableCellRenderer.class.getName()); 23 23 -
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r2850 r2990 32 32 */ 33 33 public class VersionInfoPanel extends JPanel implements Observer{ 34 @SuppressWarnings("unused") 34 35 static private final Logger logger = Logger.getLogger(VersionInfoPanel.class.getName()); 35 36 -
trunk/src/org/openstreetmap/josm/gui/history/VersionTableCellRenderer.java
r2959 r2990 28 28 public class VersionTableCellRenderer extends JLabel implements TableCellRenderer { 29 29 30 @SuppressWarnings("unused") 30 31 static private Logger logger = Logger.getLogger(VersionTableCellRenderer.class.getName()); 31 32 -
trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
r2915 r2990 66 66 + "to know the identity of the user on whose behalf you are working.") 67 67 + "</html>", 68 tr("Missing user identity"),69 JOptionPane.ERROR_MESSAGE68 tr("Missing user identity"), 69 JOptionPane.ERROR_MESSAGE 70 70 ); 71 71 return; … … 100 100 */ 101 101 protected void refreshUserIdentity(){ 102 JosmUserIdentityManager im = null;102 JosmUserIdentityManager im = JosmUserIdentityManager.getInstance(); 103 103 try { 104 im = JosmUserIdentityManager.getInstance();105 104 OsmServerUserInfoReader reader = new OsmServerUserInfoReader(); 106 105 UserInfo info = reader.fetchUserInfo(getProgressMonitor().createSubTaskMonitor(1, false)); -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayerInfo.java
r2848 r2990 6 6 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 7 7 import org.openstreetmap.josm.tools.CheckParameterUtil; 8 9 import static org.openstreetmap.josm.tools.I18n.tr;10 8 11 9 /** -
trunk/src/org/openstreetmap/josm/gui/io/UpdatePrimitivesTask.java
r2801 r2990 34 34 */ 35 35 public class UpdatePrimitivesTask extends PleaseWaitRunnable { 36 @SuppressWarnings("unused") 36 37 static private final Logger logger = Logger.getLogger(UpdatePrimitivesTask.class.getName()); 37 38 -
trunk/src/org/openstreetmap/josm/gui/io/UploadParameterSummaryPanel.java
r2915 r2990 27 27 28 28 public class UploadParameterSummaryPanel extends JPanel implements HyperlinkListener, PropertyChangeListener{ 29 29 @SuppressWarnings("unused") 30 30 static private final Logger logger = Logger.getLogger(UploadParameterSummaryPanel.class.getName()); 31 31 -
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r2915 r2990 39 39 */ 40 40 public class UploadPrimitivesTask extends AbstractUploadTask { 41 @SuppressWarnings("unused") 41 42 static private final Logger logger = Logger.getLogger(UploadPrimitivesTask.class.getName()); 42 43 -
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r2941 r2990 257 257 258 258 File sel[] = fc.getSelectedFiles(); 259 if (sel != null) { 260 // sort files in increasing order of timestamp (this is the end time, but so 261 // long as they don't overlap, that's fine) 262 if (sel.length > 1) { 263 Arrays.sort(sel, new Comparator<File>() { 264 public int compare(File a, File b) { 265 return a.lastModified() <= b.lastModified() ? -1 : 1; 266 } 267 }); 268 } 259 // sort files in increasing order of timestamp (this is the end time, but so 260 // long as they don't overlap, that's fine) 261 if (sel.length > 1) { 262 Arrays.sort(sel, new Comparator<File>() { 263 public int compare(File a, File b) { 264 return a.lastModified() <= b.lastModified() ? -1 : 1; 265 } 266 }); 269 267 } 270 268 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r2969 r2990 41 41 import javax.swing.JSeparator; 42 42 import javax.swing.SwingConstants; 43 import javax.swing.SwingUtilities;44 43 45 44 import org.openstreetmap.josm.Main; … … 236 235 Main.main.addLayer(layer); 237 236 layer.hook_up_mouse_events(); // Main.map.mapView should exist 238 237 // now. Can add mouse listener 239 238 Main.map.mapView.addPropertyChangeListener(layer); 240 239 if (Main.map.getToggleDialog(ImageViewerDialog.class) == null) { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r2986 r2990 83 83 84 84 boolean error = tracker.isErrorID(1); 85 if (img != null && (img.getWidth(null) == 0 || img.getHeight(null) == 0)) {85 if (img.getWidth(null) == 0 || img.getHeight(null) == 0) { 86 86 error = true; 87 87 } … … 439 439 g.setColor(Color.black); 440 440 String loadingStr; 441 if (! errorLoading) { ;442 loadingStr = tr("Loading {0}", file.getName());441 if (! errorLoading) { 442 loadingStr = tr("Loading {0}", file.getName()); 443 443 } else { 444 444 loadingStr = tr("Error on file {0}", file.getName()); -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r2889 r2990 4 4 5 5 import java.io.File; 6 import java.io.IOException; 6 7 import java.io.InputStream; 7 import java.io.IOException;8 8 import java.util.Collection; 9 9 import java.util.Collections; … … 58 58 } 59 59 60 @SuppressWarnings("null") 60 61 public static void readFromPreferences() { 61 62 iconDirs = Main.pref.getCollection("mappaint.icon.sources", Collections.<String>emptySet()); … … 95 96 zipIcons = in.getFile(); 96 97 xmlReader.parse(new InputSource(zip)); 98 } else { 99 xmlReader.parse(new InputSource(in)); 97 100 } 98 else99 xmlReader.parse(new InputSource(in));100 101 } catch(IOException e) { 101 102 System.err.println(tr("Warning: failed to load Mappaint styles from ''{0}''. Exception was: {1}", a[1], e.toString())); -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r2927 r2990 224 224 */ 225 225 protected JPanel buildResultsPanel() { 226 JPanel pnl = new JPanel(new GridBagLayout()); ;226 JPanel pnl = new JPanel(new GridBagLayout()); 227 227 GridBagConstraints gc = new GridBagConstraints(); 228 228 pnl.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); -
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r2877 r2990 52 52 */ 53 53 public class OAuthAuthorizationWizard extends JDialog { 54 @SuppressWarnings("unused") 54 55 static private final Logger logger = Logger.getLogger(OAuthAuthorizationWizard.class.getName()); 55 56 -
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r2877 r2990 36 36 37 37 public class OsmOAuthAuthorizationClient { 38 @SuppressWarnings("unused") 38 39 static private final Logger logger = Logger.getLogger(OsmOAuthAuthorizationClient.class.getName()); 39 40 -
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r2955 r2990 53 53 54 54 public class PluginPreference implements PreferenceSetting { 55 @SuppressWarnings("unused") 55 56 private final static Logger logger = Logger.getLogger(PluginPreference.class.getName()); 56 57 … … 297 298 } 298 299 }); 299 } ;300 } 300 301 }; 301 302 Main.worker.submit(task); -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r2817 r2990 40 40 */ 41 41 public class PreferenceTabbedPane extends JTabbedPane implements MouseWheelListener { 42 @SuppressWarnings("unused") 42 43 static private final Logger logger = Logger.getLogger(PreferenceTabbedPane.class.getName()); 43 44 -
trunk/src/org/openstreetmap/josm/gui/preferences/ProjectionPreference.java
r2745 r2990 7 7 import java.awt.event.ActionEvent; 8 8 import java.awt.event.ActionListener; 9 10 9 import java.util.Collection; 11 10 … … 110 109 String projname = proj.getClass().getName(); 111 110 Collection<String> prefs = null; 112 if(projHasPrefs(proj)) 111 if(projHasPrefs(proj)) { 113 112 prefs = ((ProjectionSubPrefs) proj).getPreferences(projSubPrefPanel); 113 } 114 114 115 115 Main.pref.put("projection", projname); … … 143 143 { 144 144 setProjection(Main.pref.get("projection", Mercator.class.getName()), 145 Main.pref.getCollection("projection.sub", null));145 Main.pref.getCollection("projection.sub", null)); 146 146 } 147 147 … … 167 167 String sname = name.substring(name.lastIndexOf(".")+1); 168 168 Main.pref.putCollection("projection.sub."+sname, coll); 169 if(projHasPrefs(Main.proj)) 169 if(projHasPrefs(Main.proj)) { 170 170 ((ProjectionSubPrefs) Main.proj).setPreferences(coll); 171 } 171 172 if(b != null && (!Main.proj.getClass().getName().equals(oldProj.getClass().getName()) || Main.proj.hashCode() != oldProj.hashCode())) 172 173 { … … 181 182 public SBPanel(Projection pr) 182 183 { 183 super();184 p = pr;184 super(); 185 p = pr; 185 186 } 186 187 @Override 187 188 public void paint(java.awt.Graphics g) 188 189 { 189 super.paint(g);190 ((ProjectionSubPrefs) p).setPreferences(((ProjectionSubPrefs) p).getPreferences(this));191 updateMeta(p);192 } 193 } ;190 super.paint(g); 191 ((ProjectionSubPrefs) p).setPreferences(((ProjectionSubPrefs) p).getPreferences(this)); 192 updateMeta(p); 193 } 194 } 194 195 195 196 /** … … 228 229 String name = proj.getClass().getName(); 229 230 String sname = name.substring(name.lastIndexOf(".")+1); 230 if(projHasPrefs(proj)) 231 if(projHasPrefs(proj)) { 231 232 ((ProjectionSubPrefs) proj).setPreferences(Main.pref.getCollection("projection.sub."+sname, null)); 233 } 232 234 if (name.equals(Main.pref.get("projection", Mercator.class.getName()))) { 233 235 projectionCombo.setSelectedIndex(i); -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java
r2924 r2990 26 26 27 27 public class PluginListPanel extends VerticallyScrollablePanel{ 28 @SuppressWarnings("unused") 28 29 private static final Logger logger = Logger.getLogger(PluginListPanel.class.getName()); 29 30 -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferencesModel.java
r2986 r2990 21 21 22 22 public class PluginPreferencesModel extends Observable{ 23 @SuppressWarnings("unused") 23 24 private final static Logger logger = Logger.getLogger(PluginPreferencesModel.class.getName()); 24 25 … … 157 158 if (pi != null) { 158 159 selectedPluginsMap.put(pi,selected); 160 if (pi.isUpdateRequired()) { 161 pendingDownloads.add(pi.name); 162 } 159 163 } 160 164 if (!selected) { 161 165 pendingDownloads.remove(name); 162 return;163 }164 if (pi.isUpdateRequired()) {165 pendingDownloads.add(pi.name);166 166 } 167 167 } -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAccessTokenHolder.java
r2801 r2990 14 14 15 15 public class OAuthAccessTokenHolder { 16 @SuppressWarnings("unused") 16 17 static private final Logger logger = Logger.getLogger(OAuthAccessTokenHolder.class.getName()); 17 18 -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAuthenticationPreferencesPanel.java
r2877 r2990 45 45 */ 46 46 public class OAuthAuthenticationPreferencesPanel extends JPanel implements PropertyChangeListener { 47 @SuppressWarnings("unused") 47 48 private static final Logger logger = Logger.getLogger(OAuthAuthenticationPreferencesPanel.class.getName()); 48 49 -
trunk/src/org/openstreetmap/josm/gui/progress/SwingRenderingProgressMonitor.java
r2850 r2990 5 5 6 6 import org.openstreetmap.josm.tools.CheckParameterUtil; 7 8 import static org.openstreetmap.josm.tools.I18n.tr;9 7 10 8 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/AutoCompletingTextField.java
r2512 r2990 33 33 */ 34 34 public class AutoCompletingTextField extends JTextField implements ComboBoxEditor, TableCellEditor { 35 35 @SuppressWarnings("unused") 36 36 static private Logger logger = Logger.getLogger(AutoCompletingTextField.class.getName()); 37 37 -
trunk/src/org/openstreetmap/josm/gui/tagging/TagCellRenderer.java
r2974 r2990 21 21 */ 22 22 public class TagCellRenderer extends JLabel implements TableCellRenderer { 23 23 @SuppressWarnings("unused") 24 24 private static final Logger logger = Logger.getLogger(TagCellRenderer.class.getName()); 25 25 -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
r2974 r2990 33 33 @SuppressWarnings("serial") 34 34 public class TagEditorModel extends AbstractTableModel { 35 @SuppressWarnings("unused") 35 36 static private final Logger logger = Logger.getLogger(TagEditorModel.class.getName()); 36 37 -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.java
r2974 r2990 26 26 */ 27 27 public class TagEditorPanel extends JPanel { 28 @SuppressWarnings("unused") 28 29 static private final Logger logger = Logger.getLogger(TagEditorPanel.class.getName()); 29 30 /** the tag editor model */ -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionCache.java
r2974 r2990 37 37 */ 38 38 public class AutoCompletionCache { 39 @SuppressWarnings("unused") 39 40 static private final Logger logger = Logger.getLogger(AutoCompletionCache.class.getName()); 40 41
Note:
See TracChangeset
for help on using the changeset viewer.