- Timestamp:
 - 2009-10-25T15:51:51+01:00 (16 years ago)
 - Location:
 - trunk/src/org/openstreetmap/josm
 - Files:
 - 
      
- 3 edited
 
- 
          
  gui/history/HistoryBrowserDialog.java (modified) (2 diffs)
 - 
          
  gui/history/VersionInfoPanel.java (modified) (3 diffs)
 - 
          
  tools/UrlLabel.java (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java
r2019 r2318 21 21 import org.openstreetmap.josm.data.osm.history.HistoryDataSetListener; 22 22 import org.openstreetmap.josm.gui.SideButton; 23 import org.openstreetmap.josm.gui.dialogs.HistoryDialog; 23 import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction; 24 import org.openstreetmap.josm.gui.help.HelpUtil; 24 25 import org.openstreetmap.josm.tools.ImageProvider; 26 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 25 27 26 28 /** … … 71 73 btn.setName("btn.close"); 72 74 pnl.add(btn); 75 76 btn = new SideButton(new ContextSensitiveHelpAction(ht("/Dialog/History"))); 77 btn.setName("btn.help"); 78 pnl.add(btn); 73 79 add(pnl, BorderLayout.SOUTH); 80 81 HelpUtil.setHelpContext(getRootPane(), ht("/Dialog/History")); 74 82 75 83 setSize(800, 500);  - 
      
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r2254 r2318 12 12 import java.util.Observable; 13 13 import java.util.Observer; 14 import java.util.logging.Logger; 14 15 15 16 import javax.swing.JLabel; … … 26 27 */ 27 28 public class VersionInfoPanel extends JPanel implements Observer{ 29 static private final Logger logger = Logger.getLogger(VersionInfoPanel.class.getName()); 28 30 29 31 private PointInTimeType pointInTimeType; … … 123 125 lblUser.setUrl(null); 124 126 } 125 lblUser.setDescription(getPrimitive().getUser()); 127 String username = getPrimitive().getUser(); 128 lblUser.setDescription(username); 126 129 } 127 130 }  - 
      
trunk/src/org/openstreetmap/josm/tools/UrlLabel.java
r2250 r2318 48 48 } 49 49 50 /** 51 * Sets the URL to be visited if the user clicks on this URL label. If null, the 52 * label turns into a normal label without hyperlink. 53 * 54 * @param url the url. Can be null. 55 */ 50 56 public void setUrl(String url) { 51 this.url = url == null ? "" : url;57 this.url = url; 52 58 refresh(); 53 59 } 54 60 61 /** 62 * Sets the text part of the URL label. Defaults to the empty string if description is null. 63 * 64 * @param description the description 65 */ 55 66 public void setDescription(String description) { 56 67 this.description = description == null? "" : description; 68 this.description = this.description.replace("&", "&").replace(">", ">").replace("<", "<"); 57 69 refresh(); 58 70 }  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  