Changeset 4191 in josm
- Timestamp:
- 2011-07-01T09:32:56+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 deleted
- 91 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r3656 r4191 22 22 // remember input from last time 23 23 private String text; 24 25 //static private final Logger logger = Logger.getLogger(AddNodeAction.class.getName());26 24 27 25 public AddNodeAction() { -
trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
r2990 r4191 8 8 import java.awt.event.KeyEvent; 9 9 import java.util.concurrent.Future; 10 import java.util.logging.Logger;11 10 12 11 import org.openstreetmap.josm.Main; … … 27 26 */ 28 27 public class DownloadAction extends JosmAction { 29 @SuppressWarnings("unused")30 private static final Logger logger = Logger.getLogger(DownloadAction.class.getName());31 32 28 public DownloadAction() { 33 29 super(tr("Download from OSM..."), "download", tr("Download map data from the OSM server."), -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r3671 r4191 8 8 import java.awt.event.KeyEvent; 9 9 import java.util.LinkedList; 10 import java.util.logging.Logger;11 10 12 11 import javax.swing.JOptionPane; … … 37 36 */ 38 37 public class UploadAction extends JosmAction{ 39 @SuppressWarnings("unused")40 static private Logger logger = Logger.getLogger(UploadAction.class.getName());41 38 /** 42 39 * The list of upload hooks. These hooks will be called one after the other -
trunk/src/org/openstreetmap/josm/actions/UploadSelectionAction.java
r3426 r4191 39 39 */ 40 40 public class UploadSelectionAction extends JosmAction{ 41 //static private Logger logger = Logger.getLogger(UploadSelectionAction.class.getName());42 43 41 public UploadSelectionAction() { 44 42 super( -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
r3066 r4191 7 7 import java.util.Collection; 8 8 import java.util.concurrent.Future; 9 import java.util.logging.Logger;10 9 11 10 import org.openstreetmap.josm.Main; … … 31 30 */ 32 31 public class DownloadOsmTask extends AbstractDownloadTask { 33 private static final Logger logger = Logger.getLogger(DownloadOsmTask.class.getName());34 35 32 private Bounds currentBounds; 36 33 private DataSet downloadedData; … … 92 89 } catch(Exception e) { 93 90 if (isCanceled()) { 94 logger.warning(tr("Ignoring exception because download has been cancelled. Exception was: {0}", e.toString()));91 System.out.println(tr("Ignoring exception because download has been cancelled. Exception was: {0}", e.toString())); 95 92 return; 96 93 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r4086 r4191 60 60 */ 61 61 public class DrawAction extends MapMode implements MapViewPaintable, SelectionChangedListener, AWTEventListener { 62 //static private final Logger logger = Logger.getLogger(DrawAction.class.getName());63 64 62 final private Cursor cursorJoinNode; 65 63 final private Cursor cursorJoinWay; -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r4152 r4191 61 61 */ 62 62 public class SelectAction extends MapMode implements SelectionEnded { 63 //static private final Logger logger = Logger.getLogger(SelectAction.class.getName());64 65 63 enum Mode { move, rotate, scale, select } 66 64 … … 401 399 @Override 402 400 public void mousePressed(MouseEvent e) { 403 debug("mousePressed: e.getPoint()=" + e.getPoint());404 405 401 // return early 406 402 if (!mv.isActiveLayerVisible() || !(Boolean) this.getValue("active") || e.getButton() != MouseEvent.BUTTON1) { … … 470 466 @Override 471 467 public void mouseReleased(MouseEvent e) { 472 debug("mouseReleased: e.getPoint()=" + e.getPoint());473 474 468 if (!mv.isActiveLayerVisible()) { 475 469 return; … … 567 561 OsmPrimitive nxt = null; 568 562 569 debug("cyclePrims(): entry.....");570 for (OsmPrimitive osm : prims) {571 debug("cyclePrims(): prims id=" + osm.getId());572 }573 574 563 if (prims.size() > 1) { 575 564 boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0; … … 583 572 if (cyclePrims && shift) { 584 573 if (!(nxt = i.next()).isSelected()) { 585 debug("cyclePrims(): taking " + nxt.getId());586 574 break; // take first primitive in prims list not in sel 587 575 } … … 593 581 nxt = i.hasNext() ? i.next() : first; 594 582 } 595 debug("selectPrims(): taking " + nxt.getId());596 583 break; // take next primitive in prims list 597 584 } … … 606 593 ds.clearSelection(prims); 607 594 cycleStart = foundInDS; 608 debug("selectPrims(): cycleStart set to foundInDS=" + cycleStart.getId());609 595 } else if (cycleStart.equals(nxt)) { 610 596 // loop detected, insert deselect step 611 597 ds.addSelected(nxt); 612 debug("selectPrims(): cycleStart hit");613 598 } 614 599 } else { … … 616 601 nxt = (prims.contains(cycleStart)) ? cycleStart : first; 617 602 cycleStart = nxt; 618 debug("selectPrims(): cycleStart set to nxt=" + cycleStart.getId());619 603 } 620 604 } else { 621 605 cycleStart = null; 622 606 } 623 624 debug("cyclePrims(): truncated prims list to id=" + nxt.getId());625 607 } 626 608 … … 701 683 return l instanceof OsmDataLayer; 702 684 } 703 704 private static void debug(String s) {705 //System.err.println("SelectAction:" + s);706 }707 685 } -
trunk/src/org/openstreetmap/josm/command/ChangeRelationMemberRoleCommand.java
r3262 r4191 43 43 @Override public boolean executeCommand() { 44 44 if (position < 0 || position >= relation.getMembersCount()) { 45 Main.debug("error changing the role");46 45 return false; 47 46 } -
trunk/src/org/openstreetmap/josm/command/Command.java
r3262 r4191 121 121 if (o != null) 122 122 return o; 123 Main.debug("unable to find osm with id: " + osm.getId() + " hashCode: " + osm.hashCode());124 123 for (OsmPrimitive t : cloneMap.keySet()) { 125 124 PrimitiveData to = cloneMap.get(t); 126 Main.debug("now: " + t.getId() + " hashCode: " + t.hashCode());127 Main.debug("orig: " + to.getUniqueId() + " hashCode: " + to.hashCode());128 125 } 129 126 return o; -
trunk/src/org/openstreetmap/josm/command/ConflictResolveCommand.java
r3083 r4191 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 import java.util.logging.Logger;7 5 8 6 import org.openstreetmap.josm.Main; … … 20 18 */ 21 19 public abstract class ConflictResolveCommand extends Command { 22 private static final Logger logger = Logger.getLogger(ConflictResolveCommand.class.getName());23 24 20 /** the list of resolved conflicts */ 25 21 private ConflictCollection resolvedConflicts; … … 65 61 66 62 if (! Main.map.mapView.hasLayer(getLayer())) { 67 logger.warning(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more",63 System.out.println(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more", 68 64 this.toString(), 69 65 getLayer().toString() -
trunk/src/org/openstreetmap/josm/command/RelationMemberConflictResolverCommand.java
r3262 r4191 6 6 import java.util.Collection; 7 7 import java.util.List; 8 import java.util.logging.Logger;9 8 10 9 import javax.swing.JLabel; … … 23 22 */ 24 23 public class RelationMemberConflictResolverCommand extends Command { 25 private static final Logger logger = Logger.getLogger(RelationMemberConflictResolverCommand.class.getName());26 27 24 /** my relation */ 28 25 private final Relation my; … … 82 79 public void undoCommand() { 83 80 if (! Main.map.mapView.hasLayer(layer)) { 84 logger.warning(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more",81 System.out.println(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more", 85 82 this.toString(), 86 83 layer.toString() -
trunk/src/org/openstreetmap/josm/command/SequenceCommand.java
r3275 r4191 52 52 Command c = sequence[i]; 53 53 boolean result = c.executeCommand(); 54 if (!result) {55 Main.debug("SequenceCommand, executing command[" + i + "] " + c + " result: " + result);56 }57 54 if (!result && !continueOnError) { 58 55 this.undoCommands(i-1); -
trunk/src/org/openstreetmap/josm/command/TagConflictResolveCommand.java
r3262 r4191 7 7 import java.util.Collection; 8 8 import java.util.List; 9 import java.util.logging.Logger;10 9 11 10 import javax.swing.JLabel; … … 23 22 */ 24 23 public class TagConflictResolveCommand extends ConflictResolveCommand { 25 @SuppressWarnings("unused")26 private static final Logger logger = Logger.getLogger(TagConflictResolveCommand.class.getName());27 28 24 /** the conflict to resolve */ 29 25 private Conflict<? extends OsmPrimitive> conflict; -
trunk/src/org/openstreetmap/josm/command/UndeletePrimitivesCommand.java
r3995 r4191 28 28 @Deprecated 29 29 public class UndeletePrimitivesCommand extends ConflictResolveCommand { 30 //static private final Logger logger = Logger.getLogger(UndeletePrimitivesCommand.class.getName());31 32 30 /** the node to undelete */ 33 31 private final List<OsmPrimitive> toUndelete = new ArrayList<OsmPrimitive>(); -
trunk/src/org/openstreetmap/josm/command/WayNodesConflictResolverCommand.java
r3262 r4191 6 6 import java.util.Collection; 7 7 import java.util.List; 8 import java.util.logging.Logger;9 8 10 9 import javax.swing.JLabel; … … 22 21 */ 23 22 public class WayNodesConflictResolverCommand extends ConflictResolveCommand { 24 25 static private final Logger logger = Logger.getLogger(WayNodesConflictResolverCommand.class.getName());26 27 23 /** the conflict to resolve */ 28 24 private Conflict<Way> conflict; … … 64 60 for (Node n:mergedNodeList) { 65 61 if (! getLayer().data.getNodes().contains(n)) { 66 logger.warning(tr("Main dataset does not include node {0}", n.toString()));62 System.out.println(tr("Main dataset does not include node {0}", n.toString())); 67 63 } 68 64 } -
trunk/src/org/openstreetmap/josm/data/APIDataSet.java
r4113 r4191 12 12 import java.util.Set; 13 13 import java.util.Stack; 14 import java.util.logging.Logger;15 14 16 15 import org.openstreetmap.josm.actions.upload.CyclicUploadDependencyException; … … 279 278 */ 280 279 private class RelationUploadDependencyGraph { 281 @SuppressWarnings("unused")282 private final Logger logger = Logger.getLogger(RelationUploadDependencyGraph.class.getName());283 280 private HashMap<Relation, Set<Relation>> children; 284 281 private Collection<Relation> relations; -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r4162 r4191 60 60 */ 61 61 public class Preferences { 62 //static private final Logger logger = Logger.getLogger(Preferences.class.getName());63 64 62 /** 65 63 * Internal storage for the preference directory. -
trunk/src/org/openstreetmap/josm/data/ServerSidePreferences.java
r3938 r4191 20 20 import java.util.StringTokenizer; 21 21 import java.util.Map.Entry; 22 //import java.util.logging.Logger;23 22 24 23 import javax.swing.JOptionPane; … … 37 36 */ 38 37 public class ServerSidePreferences extends Preferences { 39 //static private final Logger logger = Logger.getLogger(ServerSidePreferences.class.getName());40 41 38 public class MissingPassword extends Exception{ 42 39 public String realm; -
trunk/src/org/openstreetmap/josm/data/coor/QuadTiling.java
r3158 r4191 25 25 long shift = (NR_LEVELS*2)-2; 26 26 27 //if (debug)28 // out("tile2xy(0x"+Long.toHexString(quad)+")");29 27 double x = 0; 30 28 double y = 0; 31 29 for (int i = 0; i < NR_LEVELS; i++) { 32 30 long bits = (quad >> shift) & 0x3; 33 //if (debug)34 // out("shift: " + shift + " bits: " + bits);35 31 // remember x is the MSB 36 32 if ((bits & 0x2) != 0) { -
trunk/src/org/openstreetmap/josm/data/osm/ChangesetCache.java
r3083 r4191 10 10 import java.util.Set; 11 11 import java.util.concurrent.CopyOnWriteArrayList; 12 import java.util.logging.Logger;13 12 14 13 import javax.swing.SwingUtilities; … … 35 34 */ 36 35 public class ChangesetCache implements PreferenceChangedListener{ 37 @SuppressWarnings("unused")38 static private final Logger logger = Logger.getLogger(ChangesetCache.class.getName());39 40 36 /** the unique instance */ 41 37 static private final ChangesetCache instance = new ChangesetCache(); -
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r4178 r4191 21 21 public class QuadBuckets<T extends OsmPrimitive> implements Collection<T> 22 22 { 23 private static boolean debug = false; 23 //private static boolean debug = false; 24 24 private static final boolean consistency_testing = false; 25 25 private static final int NW_INDEX = 1; … … 138 138 this.quad = parent.quad | this_quadpart; 139 139 this.bbox = calculateBBox(); // calculateBBox reference quad 140 if (debug) { 140 /*if (debug) { 141 141 out("new level["+this.level+"] bbox["+parent_index+"]: " + this.bbox() 142 142 + " coor: " + this.coor() 143 143 + " quadpart: " + Long.toHexString(this_quadpart) 144 144 + " quad: " + Long.toHexString(this.quad)); 145 } 145 }*/ 146 146 } 147 147 … … 189 189 int index = -1; 190 190 for (LatLon c : bbox.points()) { 191 if (debug) { 191 /*if (debug) { 192 192 out("getting index for point: " + c); 193 } 193 }*/ 194 194 if (index == -1) { 195 195 index = QuadTiling.index(c, level); 196 if (debug) { 196 /*if (debug) { 197 197 out("set initial index to: " + index); 198 } 198 }*/ 199 199 continue; 200 200 } 201 201 int another_index = QuadTiling.index(c, level); 202 if (debug) { 202 /*if (debug) { 203 203 out("other point index: " + another_index); 204 } 204 }*/ 205 205 if (another_index != index) 206 206 return -1; … … 215 215 */ 216 216 void __split() { 217 if (debug) { 217 /*if (debug) { 218 218 out("splitting "+this.bbox()+" level "+level+" with " 219 219 + content.size() + " entries (my dimensions: " 220 220 + this.bbox().width()+", "+this.bbox().height()+")"); 221 } 221 }*/ 222 222 List<T> tmpcontent = content; 223 223 content = null; … … 243 243 } 244 244 ret = content.add(o); 245 if (debug && !this.isLeaf()) { 245 /*if (debug && !this.isLeaf()) { 246 246 pout("added "+o.getClass().getName()+" to non-leaf with size: " + content.size()); 247 } 247 }*/ 248 248 return ret; 249 249 } … … 256 256 private void search_contents(BBox search_bbox, List<T> result) 257 257 { 258 if (debug) { 258 /*if (debug) { 259 259 out("searching contents (size: " + content == null?"<null>":content.size() + ") for " + search_bbox); 260 } 260 }*/ 261 261 /* 262 262 * It is possible that this was created in a split … … 271 271 } 272 272 } 273 if (debug) { 273 /*if (debug) { 274 274 out("done searching quad " + Long.toHexString(this.quad)); 275 } 275 }*/ 276 276 } 277 277 /* … … 298 298 int nr = __nr-1; 299 299 if (sibling == null) { 300 if (debug) { 300 /*if (debug) { 301 301 out("[" + this.level + "] null child nr: " + nr); 302 } 302 }*/ 303 303 continue; 304 304 } … … 306 306 // after us. 307 307 if (sibling == this) { 308 if (debug) { 308 /*if (debug) { 309 309 out("[" + this.level + "] I was child nr: " + nr); 310 } 310 }*/ 311 311 found_me = true; 312 312 continue; 313 313 } 314 314 if (found_me) { 315 if (debug) { 315 /*if (debug) { 316 316 out("[" + this.level + "] next sibling was child nr: " + nr); 317 } 317 }*/ 318 318 return sibling; 319 319 } 320 if (debug) { 320 /*if (debug) { 321 321 out("[" + this.level + "] nr: " + nr + " is before me, ignoring..."); 322 } 322 }*/ 323 323 } 324 324 return null; … … 336 336 // a leaf or branch. 337 337 while (sibling == null) { 338 if (debug) { 338 /*if (debug) { 339 339 out("no siblings at level["+next.level+"], moving to parent"); 340 } 340 }*/ 341 341 next = next.parent; 342 342 if (next == null) { … … 379 379 if (consistency_testing) { 380 380 if (!matches(o, this.bbox())) { 381 out("-----------------------------"); 382 debug = true; 381 /*out("-----------------------------"); 382 debug = true;*/ 383 383 get_index(o.getBBox(), level); 384 384 get_index(o.getBBox(), level-1); 385 385 int nr = 0; 386 for (QBLevel sibling : parent.getChildren()) { 386 /*for (QBLevel sibling : parent.getChildren()) { 387 387 out("sibling["+ (nr++) +"]: " + sibling.bbox() + " this: " + (this==sibling)); 388 } 388 }*/ 389 389 abort("\nobject " + o + " does not belong in node at level: " + level + " bbox: " + this.bbox()); 390 390 } … … 402 402 private void search(BBox search_bbox, List<T> result) 403 403 { 404 if (debug) { 404 /*if (debug) { 405 405 System.out.print("[" + level + "] qb bbox: " + this.bbox() + " "); 406 } 406 }*/ 407 407 if (!this.bbox().intersects(search_bbox)) { 408 if (debug) { 408 /*if (debug) { 409 409 out("miss " + Long.toHexString(this.quad)); 410 410 //QuadTiling.tile2xy(this.quad); 411 } 411 }*/ 412 412 return; 413 413 } else if (bbox().bounds(search_bbox)) { … … 419 419 } 420 420 421 if (debug) { 421 /*if (debug) { 422 422 out("hit " + this.quads()); 423 }424 425 if (debug) {426 423 out("[" + level + "] not leaf, moving down"); 427 } 424 }*/ 428 425 429 426 //TODO Coincidence vector should be calculated here and only buckets that match search_bbox should be checked … … 519 516 search_cache = null; 520 517 size = 0; 521 if (debug) { 518 /*if (debug) { 522 519 out("QuadBuckets() cleared: " + this); 523 520 out("root: " + root + " level: " + root.level + " bbox: " + root.bbox()); 524 } 521 }*/ 525 522 } 526 523 public boolean add(T n) { … … 532 529 public void unsupported() 533 530 { 534 out("unsupported operation");531 System.out.println("unsupported operation"); 535 532 throw new UnsupportedOperationException(); 536 533 } … … 592 589 a.add(n); 593 590 } 594 if (debug) { 591 /*if (debug) { 595 592 out("returning array list with size: " + a.size()); 596 } 593 }*/ 597 594 return a; 598 595 } … … 625 622 public QuadBucketIterator(QuadBuckets<T> qb) 626 623 { 627 if (debug) { 624 /*if (debug) { 628 625 out(this + " is a new iterator qb: " + qb + " size: " + qb.size()); 629 } 626 }*/ 630 627 if (!qb.root.hasChildren() || qb.root.hasContent()) { 631 628 current_node = qb.root; … … 633 630 current_node = next_content_node(qb.root); 634 631 } 635 if (debug) { 632 /*if (debug) { 636 633 out("\titerator first leaf: " + current_node); 637 } 634 }*/ 638 635 iterated_over = 0; 639 636 } … … 641 638 { 642 639 if (this.peek() == null) { 643 if (debug) { 640 /*if (debug) { 644 641 out(this + " no hasNext(), but iterated over so far: " + iterated_over); 645 } 642 }*/ 646 643 return false; 647 644 } … … 651 648 { 652 649 if (current_node == null) { 653 if (debug) { 650 /*if (debug) { 654 651 out("null current leaf, nowhere to go"); 655 } 652 }*/ 656 653 return null; 657 654 } 658 655 while((current_node.content == null) || 659 656 (content_index >= current_node.content.size())) { 660 if (debug) { 657 /*if (debug) { 661 658 out("moving to next leaf"); 662 } 659 }*/ 663 660 content_index = 0; 664 661 current_node = next_content_node(current_node); … … 668 665 } 669 666 if (current_node == null || current_node.content == null) { 670 if (debug) { 667 /*if (debug) { 671 668 out("late nowhere to go " + current_node); 672 } 669 }*/ 673 670 return null; 674 671 } … … 679 676 T ret = peek(); 680 677 content_index++; 681 if (debug) { 678 /*if (debug) { 682 679 out("iteration["+iterated_over+"] " + content_index + " leaf: " + current_node); 683 } 680 }*/ 684 681 iterated_over++; 685 682 if (ret == null) { 686 if (debug) { 683 /*if (debug) { 687 684 out(this + " no next node, but iterated over so far: " + iterated_over); 688 } 685 }*/ 689 686 } 690 687 return ret; … … 716 713 } 717 714 public List<T> search(BBox search_bbox) { 718 if (debug) { 715 /*if (debug) { 719 716 out("qb root search at " + search_bbox); 720 717 out("root bbox: " + root.bbox()); 721 } 718 }*/ 722 719 List<T> ret = new ArrayList<T>(); 723 720 // Doing this cuts down search cost on a real-life data … … 732 729 // search 733 730 while (search_cache != null && !search_cache.bbox().bounds(search_bbox)) { 734 if (debug) { 731 /*if (debug) { 735 732 out("bbox: " + search_bbox); 736 }737 if (debug) {738 733 out("search_cache: " + search_cache + " level: " + search_cache.level); 739 734 out("search_cache.bbox(): " + search_cache.bbox()); 740 } 735 }*/ 741 736 search_cache = search_cache.parent; 742 if (debug) { 737 /*if (debug) { 743 738 out("new search_cache: " + search_cache); 744 } 739 }*/ 745 740 } 746 741 … … 764 759 tmp = tmp.parent; 765 760 } 766 if (debug) { 761 /*if (debug) { 767 762 out("search of QuadBuckets for " + search_bbox + " ret len: " + ret.size()); 768 } 763 }*/ 769 764 return ret; 770 765 } -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryDataSet.java
r3083 r4191 22 22 */ 23 23 public class HistoryDataSet implements LayerChangeListener{ 24 //private final static Logger logger = Logger.getLogger(HistoryDataSet.class.getName());25 26 24 /** the unique instance */ 27 25 private static HistoryDataSet historyDataSet; -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java
r4004 r4191 8 8 import java.util.Collection; 9 9 import java.util.List; 10 import java.util.logging.Logger;11 10 12 11 import org.openstreetmap.josm.Main; … … 21 20 22 21 public class Multipolygon { 23 static private final Logger logger = Logger.getLogger(Multipolygon.class.getName());24 25 22 /** preference key for a collection of roles which indicate that the respective member belongs to an 26 23 * <em>outer</em> polygon. Default is <tt>outer</tt>. -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r2990 r4191 5 5 import java.awt.EventQueue; 6 6 import java.io.IOException; 7 import java.util.logging.Logger;8 7 9 8 import javax.swing.SwingUtilities; … … 24 23 */ 25 24 public abstract class PleaseWaitRunnable implements Runnable, CancelListener { 26 @SuppressWarnings("unused")27 private final static Logger logger = Logger.getLogger(PleaseWaitRunnable.class.getName());28 29 25 private boolean cancelled = false; 30 26 private boolean ignoreException; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ConflictResolver.java
r3362 r4191 66 66 */ 67 67 static public final String THEIR_PRIMITIVE_PROP = ConflictResolver.class.getName() + ".theirPrimitive"; 68 69 //private static final Logger logger = Logger.getLogger(ConflictResolver.class.getName());70 68 71 69 private JTabbedPane tabbedPane = null; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMergeModel.java
r3995 r4191 63 63 */ 64 64 public abstract class ListMergeModel<T> extends Observable { 65 //private static final Logger logger = Logger.getLogger(ListMergeModel.class.getName());66 67 65 public static final String FROZEN_PROP = ListMergeModel.class.getName() + ".frozen"; 68 66 -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java
r3719 r4191 46 46 */ 47 47 public abstract class ListMerger<T> extends JPanel implements PropertyChangeListener, Observer { 48 //private static final Logger logger = Logger.getLogger(ListMerger.class.getName());49 50 48 protected JTable myEntriesTable; 51 49 protected JTable mergedEntriesTable; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergeModel.java
r3083 r4191 19 19 20 20 public class NodeListMergeModel extends ListMergeModel<Node>{ 21 //private static final Logger logger = Logger.getLogger(NodeListMergeModel.class.getName());22 23 21 private DataSet myDataset; 24 22 -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMerger.java
r3719 r4191 17 17 */ 18 18 public class NodeListMerger extends ListMerger<Node> implements IConflictResolver { 19 //private static final Logger logger = Logger.getLogger(NodeListMerger.class.getName());20 21 19 public NodeListMerger() { 22 20 super(new NodeListMergeModel()); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberListMergeModel.java
r3083 r4191 21 21 */ 22 22 public class RelationMemberListMergeModel extends ListMergeModel<RelationMember>{ 23 //private static final Logger logger = Logger.getLogger(RelationMemberListMergeModel.class.getName());24 25 23 private DataSet myDataset; 26 24 -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberMerger.java
r3083 r4191 16 16 */ 17 17 public class RelationMemberMerger extends ListMerger<RelationMember> implements IConflictResolver { 18 //private static final Logger logger = Logger.getLogger(RelationMemberMerger.class.getName());19 20 18 @Override 21 19 protected JScrollPane buildMyElementsTable() { -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeModel.java
r3083 r4191 30 30 */ 31 31 public class TagMergeModel extends DefaultTableModel { 32 //private static final Logger logger = Logger.getLogger(TagMergeModel.class.getName());33 34 32 static public final String PROP_NUM_UNDECIDED_TAGS = TagMergeModel.class.getName() + ".numUndecidedTags"; 35 33 -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java
r4072 r4191 20 20 import java.util.List; 21 21 import java.util.Map; 22 import java.util.logging.Logger;23 22 24 23 import javax.swing.AbstractAction; … … 429 428 430 429 static private class StatisticsInfoRenderer extends JLabel implements TableCellRenderer { 431 @SuppressWarnings("unused")432 static private final Logger logger = Logger.getLogger(StatisticsInfoRenderer.class.getName());433 434 430 protected void reset() { 435 431 setIcon(null); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r3416 r4191 69 69 */ 70 70 public class ChangesetDialog extends ToggleDialog{ 71 //static private final Logger logger = Logger.getLogger(ChangesetDialog.class.getName());72 73 71 private ChangesetInSelectionListModel inSelectionModel; 74 72 private ChangesetsInActiveDataLayerListModel inActiveDataLayerModel; -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r4072 r4191 74 74 */ 75 75 public class LayerListDialog extends ToggleDialog { 76 //static private final Logger logger = Logger.getLogger(LayerListDialog.class.getName());77 78 76 /** the unique instance of the dialog */ 79 77 static private LayerListDialog instance; -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r4158 r4191 69 69 */ 70 70 public class RelationListDialog extends ToggleDialog implements DataSetListener { 71 //private static final Logger logger = Logger.getLogger(RelationListDialog.class.getName());72 73 71 /** The display list. */ 74 72 private JList displaylist; -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r4138 r4191 24 24 import java.util.List; 25 25 import java.util.Set; 26 import java.util.logging.Logger;27 26 28 27 import javax.swing.AbstractAction; … … 86 85 */ 87 86 public class SelectionListDialog extends ToggleDialog { 88 @SuppressWarnings("unused")89 static private final Logger logger = Logger.getLogger(SelectionListDialog.class.getName());90 91 87 private JList lstPrimitives; 92 88 private SelectionListModel model; -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetListModel.java
r3503 r4191 22 22 23 23 public class ChangesetListModel extends DefaultListModel implements ChangesetCacheListener{ 24 //static private final Logger logger = Logger.getLogger(ChangesetListModel.class.getName());25 26 24 private final List<Changeset> data = new ArrayList<Changeset>(); 27 25 private final Storage<Changeset> shownChangesets = new Storage<Changeset>(true); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
r3977 r4191 54 54 */ 55 55 public class ChildRelationBrowser extends JPanel { 56 //static private final Logger logger = Logger.getLogger(ChildRelationBrowser.class.getName());57 58 56 /** the tree with relation children */ 59 57 private RelationTree childTree; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r4154 r4191 30 30 import java.util.Map; 31 31 import java.util.Set; 32 import java.util.logging.Logger;33 32 34 33 import javax.swing.AbstractAction; … … 87 86 */ 88 87 public class GenericRelationEditor extends RelationEditor { 89 @SuppressWarnings("unused")90 static private final Logger logger = Logger.getLogger(GenericRelationEditor.class.getName());91 92 88 /** the tag table and its model */ 93 89 private TagEditorPanel tagEditorPanel; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberRoleCellEditor.java
r3479 r4191 3 3 4 4 import java.awt.Component; 5 import java.util.logging.Logger;6 5 7 6 import javax.swing.AbstractCellEditor; … … 14 13 15 14 public class MemberRoleCellEditor extends AbstractCellEditor implements TableCellEditor { 16 @SuppressWarnings("unused")17 static private Logger logger = Logger.getLogger(MemberRoleCellEditor.class.getName());18 19 15 private AutoCompletingTextField editor = null; 20 16 private DataSet ds; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTree.java
r3218 r4191 7 7 import java.awt.Dialog; 8 8 import java.io.IOException; 9 import java.util.logging.Logger;10 9 11 10 import javax.swing.JTree; … … 35 34 */ 36 35 public class RelationTree extends JTree { 37 @SuppressWarnings("unused")38 static private final Logger logger = Logger.getLogger(RelationTree.class.getName());39 40 36 /** 41 37 * builds the UI -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTreeModel.java
r3083 r4191 23 23 */ 24 24 public class RelationTreeModel implements TreeModel { 25 //private static final Logger logger = Logger.getLogger(RelationTreeModel.class.getName());26 27 25 /** the root relation */ 28 26 private Relation root; -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r3976 r4191 23 23 import java.util.ArrayList; 24 24 import java.util.List; 25 import java.util.logging.Logger;26 25 27 26 import javax.swing.AbstractAction; … … 51 50 */ 52 51 public class DownloadDialog extends JDialog { 53 @SuppressWarnings("unused")54 static private final Logger logger = Logger.getLogger(DownloadDialog.class.getName());55 56 52 /** the unique instance of the download dialog */ 57 53 static private DownloadDialog instance; -
trunk/src/org/openstreetmap/josm/gui/download/TileSelection.java
r3105 r4191 6 6 import java.beans.PropertyChangeEvent; 7 7 import java.beans.PropertyChangeListener; 8 import java.util.logging.Logger;9 8 10 9 import org.openstreetmap.josm.data.Bounds; … … 20 19 */ 21 20 public class TileSelection implements DownloadSelection, PropertyChangeListener { 22 private static final Logger logger = Logger.getLogger(TileSelection.class.getName());23 24 21 private TileSelectionBBoxChooser chooser; 25 22 private DownloadDialog parent; -
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r3975 r4191 19 19 import java.util.Observable; 20 20 import java.util.Observer; 21 import java.util.logging.Logger;22 21 23 22 import javax.swing.AbstractAction; … … 52 51 53 52 public class HelpBrowser extends JDialog { 54 static private final Logger logger = Logger.getLogger(HelpBrowser.class.getName());55 56 53 /** the unique instance */ 57 54 private static HelpBrowser instance; … … 281 278 url = HelpUtil.getHelpTopicUrl(HelpUtil.buildAbsoluteHelpTopic(relativeHelpTopic, Locale.ENGLISH)); 282 279 try { 283 logger.info("fetching url: " + url);284 280 content = reader.fetchHelpTopicContent(url, true); 285 281 } catch(MissingHelpContentException e1) { -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r3221 r4191 67 67 */ 68 68 public class HistoryBrowserModel extends Observable implements LayerChangeListener, DataSetListener { 69 //private static Logger logger = Logger.getLogger(HistoryBrowserModel.class.getName());70 71 69 /** the history of an OsmPrimitive */ 72 70 private History history; -
trunk/src/org/openstreetmap/josm/gui/history/TagTableCellRenderer.java
r4072 r4191 7 7 import java.awt.Component; 8 8 import java.awt.Font; 9 import java.util.logging.Logger;10 9 11 10 import javax.swing.JLabel; … … 19 18 */ 20 19 public class TagTableCellRenderer extends JLabel implements TableCellRenderer { 21 @SuppressWarnings("unused")22 static private Logger logger = Logger.getLogger(TagTableCellRenderer.class.getName());23 24 20 public final static Color BGCOLOR_DIFFERENCE = new Color(255,197,197); 25 21 -
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r3083 r4191 13 13 import java.util.Observable; 14 14 import java.util.Observer; 15 import java.util.logging.Logger;16 15 17 16 import javax.swing.JLabel; … … 32 31 */ 33 32 public class VersionInfoPanel extends JPanel implements Observer{ 34 @SuppressWarnings("unused")35 static private final Logger logger = Logger.getLogger(VersionInfoPanel.class.getName());36 37 33 private PointInTimeType pointInTimeType; 38 34 private HistoryBrowserModel model; -
trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java
r3443 r4191 27 27 */ 28 28 public class VersionTable extends JTable implements Observer{ 29 //private static Logger logger = Logger.getLogger(VersionTable.class.getName());30 31 29 private VersionTablePopupMenu popupMenu; 32 30 -
trunk/src/org/openstreetmap/josm/gui/history/VersionTableCellRenderer.java
r4072 r4191 8 8 import java.text.SimpleDateFormat; 9 9 import java.util.HashMap; 10 import java.util.logging.Logger;11 10 12 11 import javax.swing.ImageIcon; … … 27 26 */ 28 27 public class VersionTableCellRenderer extends JLabel implements TableCellRenderer { 29 30 @SuppressWarnings("unused")31 static private Logger logger = Logger.getLogger(VersionTableCellRenderer.class.getName());32 33 28 public final static Color BGCOLOR_SELECTED = new Color(143,170,255); 34 29 public final static Color BGCOLOR_IS_REFERENCE_POINT = new Color(255,197,197); -
trunk/src/org/openstreetmap/josm/gui/io/AbstractUploadTask.java
r3754 r4191 10 10 import java.util.Collections; 11 11 import java.util.Date; 12 import java.util.logging.Logger;13 12 import java.util.regex.Matcher; 14 13 import java.util.regex.Pattern; … … 35 34 36 35 public abstract class AbstractUploadTask extends PleaseWaitRunnable { 37 private static final Logger logger = Logger.getLogger(AbstractUploadTask.class.getName());38 39 36 public AbstractUploadTask(String title, boolean ignoreException) { 40 37 super(title, ignoreException); … … 273 270 return; 274 271 } 275 logger.warning(tr("Warning: error header \"{0}\" did not match with an expected pattern", e.getErrorHeader()));272 System.out.println(tr("Warning: error header \"{0}\" did not match with an expected pattern", e.getErrorHeader())); 276 273 handleUploadConflictForUnknownConflict(); 277 274 } … … 290 287 return; 291 288 } 292 logger.warning(tr("Warning: error header \"{0}\" did not match with an expected pattern", e.getErrorHeader()));289 System.out.println(tr("Warning: error header \"{0}\" did not match with an expected pattern", e.getErrorHeader())); 293 290 ExceptionDialogUtil.explainPreconditionFailed(e); 294 291 } -
trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesTask.java
r4090 r4191 9 9 import java.util.List; 10 10 import java.util.Set; 11 import java.util.logging.Logger;12 11 13 12 import javax.swing.SwingUtilities; … … 32 31 33 32 public class DownloadPrimitivesTask extends PleaseWaitRunnable { 34 @SuppressWarnings("unused")35 static private final Logger logger = Logger.getLogger(UpdatePrimitivesTask.class.getName());36 37 33 private DataSet ds; 38 34 private boolean canceled; -
trunk/src/org/openstreetmap/josm/gui/io/UpdatePrimitivesTask.java
r3083 r4191 9 9 import java.util.Collection; 10 10 import java.util.Collections; 11 import java.util.logging.Logger;12 11 13 12 import javax.swing.SwingUtilities; … … 34 33 */ 35 34 public class UpdatePrimitivesTask extends PleaseWaitRunnable { 36 @SuppressWarnings("unused")37 static private final Logger logger = Logger.getLogger(UpdatePrimitivesTask.class.getName());38 39 35 private DataSet ds; 40 36 private boolean canceled; -
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r3770 r4191 18 18 import java.util.List; 19 19 import java.util.Map; 20 import java.util.logging.Logger;21 20 22 21 import javax.swing.AbstractAction; … … 54 53 */ 55 54 public class UploadDialog extends JDialog implements PropertyChangeListener, PreferenceChangedListener{ 56 protected static final Logger logger = Logger.getLogger(UploadDialog.class.getName());57 58 55 /** the unique instance of the upload dialog */ 59 56 static private UploadDialog uploadDialog; -
trunk/src/org/openstreetmap/josm/gui/io/UploadParameterSummaryPanel.java
r3120 r4191 10 10 import java.beans.PropertyChangeListener; 11 11 import java.text.MessageFormat; 12 import java.util.logging.Logger;13 12 14 13 import javax.swing.BorderFactory; … … 27 26 28 27 public class UploadParameterSummaryPanel extends JPanel implements HyperlinkListener, PropertyChangeListener{ 29 @SuppressWarnings("unused")30 static private final Logger logger = Logger.getLogger(UploadParameterSummaryPanel.class.getName());31 32 28 private UploadStrategySpecification spec = new UploadStrategySpecification(); 33 29 private int numObjects; -
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r4100 r4191 11 11 import java.util.Collection; 12 12 import java.util.HashSet; 13 import java.util.logging.Logger;14 13 15 14 import javax.swing.JOptionPane; … … 40 39 */ 41 40 public class UploadPrimitivesTask extends AbstractUploadTask { 42 @SuppressWarnings("unused")43 static private final Logger logger = Logger.getLogger(UploadPrimitivesTask.class.getName());44 45 41 private boolean uploadCancelled = false; 46 42 private Exception lastException = null; -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r4126 r4191 81 81 */ 82 82 public class OsmDataLayer extends Layer implements Listener, SelectionChangedListener { 83 // static private final Logger logger = Logger.getLogger(OsmDataLayer.class.getName());84 85 83 static public final String REQUIRES_SAVE_TO_DISK_PROP = OsmDataLayer.class.getName() + ".requiresSaveToDisk"; 86 84 static public final String REQUIRES_UPLOAD_TO_SERVER_PROP = OsmDataLayer.class.getName() + ".requiresUploadToServer"; -
trunk/src/org/openstreetmap/josm/gui/mappaint/NodeElemStyle.java
r4087 r4191 28 28 */ 29 29 public class NodeElemStyle extends ElemStyle { 30 //static private final Logger logger = Logger.getLogger(NodeElemStyle.class.getName());31 32 30 public ImageIcon icon; 33 31 public int iconAlpha; -
trunk/src/org/openstreetmap/josm/gui/mappaint/TextElement.java
r4074 r4191 20 20 */ 21 21 public class TextElement { 22 //static private final Logger logger = Logger.getLogger(TextElement.class.getName());23 24 22 static private final LabelCompositionStrategy AUTO_LABEL_COMPOSITION_STRATEGY = new DeriveLabelFromNameTagsCompositionStrategy(); 25 23 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Expression.java
r4069 r4191 47 47 48 48 public static class FunctionExpression implements Expression { 49 //static Logger logger = Logger.getLogger(FunctionExpression.class.getName());50 51 49 String name; 52 50 List<Expression> args; -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java
r4007 r4191 28 28 29 29 public static class AssignmentInstruction extends Instruction { 30 //static private final Logger logger = Logger.getLogger(AssignmentInstruction.class.getName());31 30 public final String key; 32 31 public final Object val; -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r4074 r4191 30 30 31 31 public class MapCSSStyleSource extends StyleSource { 32 //static private final Logger logger = Logger.getLogger(MapCSSStyleSource.class.getName());33 34 32 final public List<MapCSSRule> rules; 35 33 private Color backgroundColorOverride; -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
r4074 r4191 47 47 */ 48 48 public static class ChildOrParentSelector implements Selector { 49 //static private final Logger logger = Logger.getLogger(ChildOrParentSelector.class.getName());50 49 private final Selector left; 51 50 private final LinkSelector link; -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/parser/MapCSSParser.java
r4069 r4191 2093 2093 } 2094 2094 2095 private java.util.List jj_expentries = new java.util.ArrayList(); 2095 private java.util.List<int[]> jj_expentries = new java.util.ArrayList<int[]>(); 2096 2096 private int[] jj_expentry; 2097 2097 private int jj_kind = -1; -
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r3501 r4191 22 22 import java.beans.PropertyChangeEvent; 23 23 import java.beans.PropertyChangeListener; 24 import java.util.logging.Logger;25 24 26 25 import javax.swing.AbstractAction; … … 55 54 */ 56 55 public class OAuthAuthorizationWizard extends JDialog { 57 @SuppressWarnings("unused")58 static private final Logger logger = Logger.getLogger(OAuthAuthorizationWizard.class.getName());59 60 56 private HtmlPanel pnlMessage; 61 57 private boolean canceled; -
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r4147 r4191 17 17 import java.util.Map; 18 18 import java.util.Map.Entry; 19 import java.util.logging.Logger;20 19 21 20 import oauth.signpost.OAuth; … … 37 36 38 37 public class OsmOAuthAuthorizationClient { 39 @SuppressWarnings("unused")40 static private final Logger logger = Logger.getLogger(OsmOAuthAuthorizationClient.class.getName());41 42 38 private OAuthParameters oauthProviderParameters; 43 39 private OAuthConsumer consumer; -
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r3757 r4191 20 20 import java.util.LinkedList; 21 21 import java.util.List; 22 import java.util.logging.Logger;23 22 24 23 import javax.swing.AbstractAction; … … 56 55 57 56 public class PluginPreference implements PreferenceSetting { 58 @SuppressWarnings("unused")59 private final static Logger logger = Logger.getLogger(PluginPreference.class.getName());60 61 57 public static class Factory implements PreferenceSettingFactory { 62 58 public PreferenceSetting createPreferenceSetting() { -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r3715 r4191 14 14 import java.util.LinkedList; 15 15 import java.util.List; 16 import java.util.logging.Logger;17 16 18 17 import javax.swing.BorderFactory; … … 40 39 */ 41 40 public class PreferenceTabbedPane extends JTabbedPane implements MouseWheelListener { 42 @SuppressWarnings("unused")43 static private final Logger logger = Logger.getLogger(PreferenceTabbedPane.class.getName());44 45 41 /** 46 42 * Allows PreferenceSettings to do validation of entered values when ok was pressed. … … 223 219 public void buildGui() { 224 220 for (PreferenceSettingFactory factory : settingsFactory) { 225 // logger.info("creating settings: " + factory);226 221 PreferenceSetting setting = factory.createPreferenceSetting(); 227 222 if (setting != null) { … … 235 230 try { 236 231 PreferenceSetting settings = it.next(); 237 //logger.info("adding gui: " + settings);238 232 settings.addGui(this); 239 233 } catch (SecurityException e) { -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java
r3330 r4191 10 10 import java.awt.event.ActionListener; 11 11 import java.util.List; 12 import java.util.logging.Logger;13 12 14 13 import javax.swing.JCheckBox; … … 25 24 26 25 public class PluginListPanel extends VerticallyScrollablePanel{ 27 @SuppressWarnings("unused")28 private static final Logger logger = Logger.getLogger(PluginListPanel.class.getName());29 30 26 private PluginPreferencesModel model; 31 27 -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferencesModel.java
r3720 r4191 14 14 import java.util.Set; 15 15 import java.util.Map.Entry; 16 import java.util.logging.Logger;17 16 18 17 import org.openstreetmap.josm.Main; … … 21 20 22 21 public class PluginPreferencesModel extends Observable{ 23 @SuppressWarnings("unused")24 private final static Logger logger = Logger.getLogger(PluginPreferencesModel.class.getName());25 26 22 private final ArrayList<PluginInformation> availablePlugins = new ArrayList<PluginInformation>(); 27 23 private final ArrayList<PluginInformation> displayedPlugins = new ArrayList<PluginInformation>(); -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAccessTokenHolder.java
r3530 r4191 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 import java.util.logging.Logger;7 5 8 6 import org.openstreetmap.josm.data.Preferences; … … 14 12 15 13 public class OAuthAccessTokenHolder { 16 @SuppressWarnings("unused")17 static private final Logger logger = Logger.getLogger(OAuthAccessTokenHolder.class.getName());18 19 14 private static OAuthAccessTokenHolder instance; 20 15 -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAuthenticationPreferencesPanel.java
r3530 r4191 16 16 import java.beans.PropertyChangeEvent; 17 17 import java.beans.PropertyChangeListener; 18 import java.util.logging.Logger;19 18 20 19 import javax.swing.AbstractAction; … … 45 44 */ 46 45 public class OAuthAuthenticationPreferencesPanel extends JPanel implements PropertyChangeListener { 47 @SuppressWarnings("unused")48 private static final Logger logger = Logger.getLogger(OAuthAuthenticationPreferencesPanel.class.getName());49 50 46 private JPanel pnlAuthorisationMessage; 51 47 private NotYetAuthorisedPanel pnlNotYetAuthorised; -
trunk/src/org/openstreetmap/josm/gui/tagging/TagCellEditor.java
r4092 r4191 3 3 4 4 import java.awt.Component; 5 import java.util.logging.Logger;6 5 7 6 import javax.swing.AbstractCellEditor; … … 19 18 @SuppressWarnings("serial") 20 19 public class TagCellEditor extends AbstractCellEditor implements TableCellEditor{ 21 22 /** the logger object */23 static private Logger logger = Logger.getLogger(TagCellEditor.class.getName());24 20 25 21 protected AutoCompletingTextField editor = null; … … 52 48 53 49 if (autoCompletionList == null) 54 //logger.warning("autoCompletionList is null. Make sure an instance of AutoCompletionList is injected into TableCellEditor.");55 50 return; 56 51 autoCompletionList.clear(); … … 80 75 protected void initAutoCompletionListForValues(String forKey) { 81 76 if (autoCompletionList == null) { 82 logger.warning("autoCompletionList is null. Make sure an instance of AutoCompletionList is injected into TableCellEditor.");83 77 return; 84 78 } … … 115 109 return editor; 116 110 } else { 117 logger.warning("column this table cell editor is requested for is out of range. column=" + column);118 111 return null; 119 112 } -
trunk/src/org/openstreetmap/josm/gui/tagging/TagCellRenderer.java
r4072 r4191 6 6 import java.awt.Component; 7 7 import java.awt.Font; 8 import java.util.logging.Logger;9 8 10 9 import javax.swing.JLabel; … … 21 20 */ 22 21 public class TagCellRenderer extends JLabel implements TableCellRenderer { 23 @SuppressWarnings("unused")24 private static final Logger logger = Logger.getLogger(TagCellRenderer.class.getName());25 26 22 private Font fontStandard = null; 27 23 private Font fontItalic = null; -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
r3640 r4191 13 13 import java.util.List; 14 14 import java.util.Map; 15 import java.util.logging.Logger;16 15 17 16 import javax.swing.DefaultListSelectionModel; … … 32 31 @SuppressWarnings("serial") 33 32 public class TagEditorModel extends AbstractTableModel { 34 @SuppressWarnings("unused")35 static private final Logger logger = Logger.getLogger(TagEditorModel.class.getName());36 37 33 static public final String PROP_DIRTY = TagEditorModel.class.getName() + ".dirty"; 38 34 -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.java
r3518 r4191 9 9 import java.util.Map; 10 10 import java.util.Map.Entry; 11 import java.util.logging.Logger;12 11 13 12 import javax.swing.BoxLayout; … … 33 32 */ 34 33 public class TagEditorPanel extends JPanel { 35 @SuppressWarnings("unused")36 static private final Logger logger = Logger.getLogger(TagEditorPanel.class.getName());37 34 /** the tag editor model */ 38 35 private TagEditorModel model; -
trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java
r4120 r4191 23 23 import java.util.EventObject; 24 24 import java.util.concurrent.CopyOnWriteArrayList; 25 import java.util.logging.Level;26 import java.util.logging.Logger;27 25 28 26 import javax.swing.AbstractAction; … … 50 48 */ 51 49 public class TagTable extends JTable { 52 53 private static final Logger logger = Logger.getLogger(TagTable.class.getName());54 55 50 /** the table cell editor used by this table */ 56 51 private TagCellEditor editor = null; … … 410 405 public void setAutoCompletionManager(AutoCompletionManager autocomplete) { 411 406 if (autocomplete == null) { 412 logger.warning("argument autocomplete should not be null. Aborting.");407 System.out.println("argument autocomplete should not be null. Aborting."); 413 408 Thread.dumpStack(); 414 409 return; … … 432 427 public void addOKAccelatorListener(KeyListener l) { 433 428 addKeyListener(l); 434 if (editor == null) { 435 logger.warning("editor is null. cannot register OK accelator listener."); 436 } else { 429 if (editor != null) { 437 430 editor.getEditor().addKeyListener(l); 438 431 } … … 481 474 robot.mouseMove(before.x, before.y); 482 475 } catch(AWTException e) { 483 logger.log(Level.SEVERE, "failed to simulate mouse click event at (" + r.x + "," + r.y + "). Exception: " + e.toString());476 System.out.println("Failed to simulate mouse click event at (" + r.x + "," + r.y + "). Exception: " + e.toString()); 484 477 return; 485 478 } -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingTextField.java
r4095 r4191 8 8 import java.awt.event.KeyEvent; 9 9 import java.util.EventObject; 10 import java.util.logging.Logger;11 10 12 11 import javax.swing.ComboBoxEditor; … … 34 33 */ 35 34 public class AutoCompletingTextField extends JTextField implements ComboBoxEditor, TableCellEditor { 36 @SuppressWarnings("unused")37 static private Logger logger = Logger.getLogger(AutoCompletingTextField.class.getName());38 39 35 /** 40 36 * The document model for the editor -
trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java
r3083 r4191 13 13 import java.util.Collections; 14 14 import java.util.List; 15 import java.util.logging.Logger;16 15 17 16 import org.openstreetmap.josm.Main; … … 24 23 */ 25 24 public class DefaultProxySelector extends ProxySelector { 26 @SuppressWarnings("unused")27 static private final Logger logger = Logger.getLogger(DefaultProxySelector.class.getName());28 29 25 /** 30 26 * The {@see ProxySelector} provided by the JDK will retrieve proxy information -
trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
r4081 r4191 13 13 import java.util.NoSuchElementException; 14 14 import java.util.Set; 15 import java.util.logging.Logger;16 15 17 16 import org.openstreetmap.josm.data.osm.DataSet; … … 50 49 */ 51 50 public class MultiFetchServerObjectReader extends OsmServerReader{ 52 53 static final private Logger logger = Logger.getLogger(MultiFetchServerObjectReader.class.getName());54 51 /** 55 52 * the max. number of primitives retrieved in one step. Assuming IDs with 7 digits, … … 361 358 } catch(OsmApiException e) { 362 359 if (e.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) { 363 logger.warning(tr("Server replied with response code 404 for id {0}. Skipping.", Long.toString(id)));360 System.out.println(tr("Server replied with response code 404 for id {0}. Skipping.", Long.toString(id))); 364 361 missingPrimitives.add(new SimplePrimitiveId(id, type)); 365 362 continue; … … 416 413 } catch(OsmApiException e) { 417 414 if (e.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) { 418 logger.warning(tr("Server replied with response code 404, retrying with an individual request for each object."));415 System.out.println(tr("Server replied with response code 404, retrying with an individual request for each object.")); 419 416 singleGetIdPackage(type, pkg, progressMonitor); 420 417 } else -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r4172 r4191 23 23 import java.util.Collections; 24 24 import java.util.HashMap; 25 import java.util.logging.Logger;26 25 27 26 import javax.xml.parsers.ParserConfigurationException; … … 52 51 */ 53 52 public class OsmApi extends OsmConnection { 54 @SuppressWarnings("unused")55 static private final Logger logger = Logger.getLogger(OsmApi.class.getName());56 53 /** max number of retries to send a request in case of HTTP 500 errors or timeouts */ 57 54 static public final int DEFAULT_MAX_NUM_RETRIES = 5; -
trunk/src/org/openstreetmap/josm/io/OsmChangesetParser.java
r3719 r4191 9 9 import java.util.LinkedList; 10 10 import java.util.List; 11 import java.util.logging.Logger;12 11 13 12 import javax.xml.parsers.ParserConfigurationException; … … 40 39 */ 41 40 public class OsmChangesetParser { 42 @SuppressWarnings("unused")43 static private final Logger logger = Logger.getLogger(OsmChangesetParser.class.getName());44 45 41 private List<Changeset> changesets; 46 42 -
trunk/src/org/openstreetmap/josm/io/OsmConnection.java
r3815 r4191 11 11 import java.nio.charset.Charset; 12 12 import java.nio.charset.CharsetEncoder; 13 //import java.util.logging.Logger;14 13 15 14 import oauth.signpost.OAuthConsumer; … … 31 30 */ 32 31 public class OsmConnection { 33 @SuppressWarnings("unused")34 //private static final Logger logger = Logger.getLogger(OsmConnection.class.getName());35 36 32 protected boolean cancel = false; 37 33 protected HttpURLConnection activeConnection; -
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r4178 r4191 12 12 import java.util.List; 13 13 import java.util.Map; 14 import java.util.logging.Level;15 import java.util.logging.Logger;16 14 17 15 import javax.xml.parsers.ParserConfigurationException; … … 51 49 */ 52 50 public class OsmReader { 53 static private final Logger logger = Logger.getLogger(OsmReader.class.getName());54 55 51 /** 56 52 * The dataset to add parsed objects to. … … 208 204 } 209 205 if (currentPrimitive.isDeleted()) { 210 logger.info(tr("Deleted way {0} contains nodes", currentPrimitive.getUniqueId()));206 System.out.println(tr("Deleted way {0} contains nodes", currentPrimitive.getUniqueId())); 211 207 } else { 212 208 list.add(id); … … 259 255 260 256 if (currentPrimitive.isDeleted()) { 261 logger.info(tr("Deleted relation {0} contains members", currentPrimitive.getUniqueId()));257 System.out.println(tr("Deleted relation {0} contains members", currentPrimitive.getUniqueId())); 262 258 } else { 263 259 list.add(emd); … … 450 446 } 451 447 if (n.isDeleted()) { 452 logger.warning(tr("Deleted node {0} is part of way {1}", id, w.getId()));448 System.out.println(tr("Deleted node {0} is part of way {1}", id, w.getId())); 453 449 } else { 454 450 wayNodes.add(n); … … 457 453 w.setNodes(wayNodes); 458 454 if (w.hasIncompleteNodes()) { 459 if (logger.isLoggable(Level.FINE)) { 460 logger.fine(tr("Way {0} with {1} nodes has incomplete nodes because at least one node was missing in the loaded data.", 461 externalWayId, w.getNodesCount())); 462 } 455 System.out.println(tr("Way {0} with {1} nodes has incomplete nodes because at least one node was missing in the loaded data.", 456 externalWayId, w.getNodesCount())); 463 457 } 464 458 ds.addPrimitive(w); … … 538 532 } 539 533 if (primitive.isDeleted()) { 540 logger.warning(tr("Deleted member {0} is used by relation {1}", primitive.getId(), relation.getId()));534 System.out.println(tr("Deleted member {0} is used by relation {1}", primitive.getId(), relation.getId())); 541 535 } else { 542 536 relationMembers.add(new RelationMember(rm.role, primitive)); -
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r4172 r4191 11 11 import java.net.MalformedURLException; 12 12 import java.net.URL; 13 import java.util.logging.Logger;14 13 import java.util.zip.GZIPInputStream; 15 14 import java.util.zip.Inflater; … … 30 29 */ 31 30 public abstract class OsmServerReader extends OsmConnection { 32 @SuppressWarnings("unused")33 static private final Logger logger = Logger.getLogger(OsmServerReader.class.getName());34 31 private OsmApi api = OsmApi.getOsmApi(); 35 32 private boolean doAuthenticate = false; -
trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java
r4100 r4191 11 11 import java.util.LinkedList; 12 12 import java.util.List; 13 import java.util.logging.Logger;14 13 15 14 import org.openstreetmap.josm.data.osm.Changeset; … … 29 28 */ 30 29 public class OsmServerWriter { 31 @SuppressWarnings("unused")32 static private final Logger logger = Logger.getLogger(OsmServerWriter.class.getName());33 34 30 /** 35 31 * This list contains all successfully processed objects. The caller of -
trunk/src/org/openstreetmap/josm/io/auth/DefaultAuthenticator.java
r3083 r4191 6 6 import java.util.HashMap; 7 7 import java.util.Map; 8 import java.util.logging.Logger;9 8 10 9 import org.openstreetmap.josm.Main; … … 17 16 */ 18 17 public class DefaultAuthenticator extends Authenticator { 19 @SuppressWarnings("unused")20 private static final Logger logger = Logger.getLogger(DefaultAuthenticator.class.getName());21 18 private static DefaultAuthenticator instance; 22 19 -
trunk/src/org/openstreetmap/josm/io/remotecontrol/PermissionPrefWithDefault.java
r3707 r4191 3 3 4 4 /** 5 * This class should replace PermissionPref because it allows explicit 6 * specification of the permission's default value. 5 * Contains a preference name to control permission for the operation 6 * implemented by the RequestHandler, and an error message to be displayed 7 * if not permitted. 7 8 * 8 9 * @author Bodo Meissner 9 10 */ 10 @SuppressWarnings("deprecation") 11 public class PermissionPrefWithDefault extends PermissionPref { 11 public class PermissionPrefWithDefault { 12 13 /** name of the preference setting to permit the remote operation */ 14 public String pref; 15 /** message to be displayed if operation is not permitted */ 16 public String message; 12 17 13 18 public boolean defaultVal = true; 14 19 15 20 public PermissionPrefWithDefault(String pref, boolean defaultVal, String message) { 16 super(pref, message); 21 this.pref = pref; 22 this.message = message; 17 23 this.defaultVal = defaultVal; 18 24 } 19 20 public PermissionPrefWithDefault(PermissionPref prefWithoutDefault) {21 super(prefWithoutDefault.pref, prefWithoutDefault.message);22 }23 25 } -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java
r3707 r4191 10 10 11 11 import org.openstreetmap.josm.Main; 12 import org.openstreetmap.josm.io.remotecontrol.PermissionPref;13 12 import org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault; 14 13 … … 82 81 * @return the preference name and error message or null 83 82 */ 84 @SuppressWarnings("deprecation") 85 public PermissionPref getPermissionPref() 83 public PermissionPrefWithDefault getPermissionPref() 86 84 { 87 85 /* Example: … … 104 102 * @throws RequestHandlerForbiddenException 105 103 */ 106 @SuppressWarnings("deprecation")107 104 final public void checkPermission() throws RequestHandlerForbiddenException 108 105 { … … 114 111 * older versions of WMSPlugin. 115 112 */ 116 PermissionPref permissionPref = getPermissionPref(); 113 PermissionPrefWithDefault permissionPref = getPermissionPref(); 117 114 if((permissionPref != null) && (permissionPref.pref != null)) 118 115 { 119 PermissionPrefWithDefault permissionPrefWithDefault; 120 if(permissionPref instanceof PermissionPrefWithDefault) 121 { 122 permissionPrefWithDefault = (PermissionPrefWithDefault) permissionPref; 123 } 124 else 125 { 126 permissionPrefWithDefault = new PermissionPrefWithDefault(permissionPref); 127 } 128 if (!Main.pref.getBoolean(permissionPrefWithDefault.pref, 129 permissionPrefWithDefault.defaultVal)) { 130 System.out.println(permissionPrefWithDefault.message); 116 if (!Main.pref.getBoolean(permissionPref.pref, permissionPref.defaultVal)) { 117 System.out.println(permissionPref.message); 131 118 throw new RequestHandlerForbiddenException(); 132 119 } -
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r4087 r4191 15 15 import java.util.Collection; 16 16 import java.util.LinkedList; 17 import java.util.logging.Logger;18 17 19 18 import org.openstreetmap.josm.Main; … … 36 35 */ 37 36 public class PluginDownloadTask extends PleaseWaitRunnable{ 38 @SuppressWarnings("unused")39 private static final Logger logger = Logger.getLogger(PluginDownloadTask.class.getName());40 41 37 private final Collection<PluginInformation> toUpdate = new LinkedList<PluginInformation>(); 42 38 private final Collection<PluginInformation> failed = new LinkedList<PluginInformation>();
Note:
See TracChangeset
for help on using the changeset viewer.