Changeset 6101 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2013-08-02T15:56:04+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r6099 r6101 76 76 Main.registerActionShortcut(this, sc); 77 77 } 78 if (tooltip==null) tooltip="";79 78 setTooltip(tooltip); 80 79 if (getValue("toolbar") == null) { -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r6099 r6101 86 86 public class BackgroundProgressMonitor implements ProgressMonitorDialog { 87 87 88 private String title ="";89 private String customText ="";88 private String title; 89 private String customText; 90 90 91 91 private void updateText() { -
trunk/src/org/openstreetmap/josm/gui/SideButton.java
r6099 r6101 88 88 setActionCommand(name); 89 89 addActionListener(actionListener); 90 if (tooltip==null) tooltip="";91 90 setToolTipText(tooltip); 92 91 putClientProperty("help", "Dialog/"+property+"/"+name); -
trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java
r6099 r6101 205 205 protected void setErrorFeedback(JosmTextField tf, String message) { 206 206 tf.setBorder(BorderFactory.createLineBorder(Color.RED, 1)); 207 if (message==null) message="";208 207 tf.setToolTipText(message); 209 208 tf.setBackground(BG_COLOR_ERROR); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r6099 r6101 685 685 mainPanel.getActionMap().put(actionShortcutShiftKey, actionShift); 686 686 // Make the tag label clickable and set tooltip to the action description (this displays also the keyboard shortcut) 687 String tooltip = (String) action.getValue(Action.SHORT_DESCRIPTION); 688 if (tooltip==null) tooltip=""; 689 tagLabel.setToolTipText(tooltip); 687 tagLabel.setToolTipText((String) action.getValue(Action.SHORT_DESCRIPTION)); 690 688 tagLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); 691 689 tagLabel.addMouseListener(new MouseAdapter() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableCellRenderer.java
r6099 r6101 40 40 setBorder(null); 41 41 setIcon(null); 42 setToolTipText( "");42 setToolTipText(null); 43 43 } 44 44 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/SelectionTableCellRenderer.java
r6099 r6101 45 45 setBorder(null); 46 46 setIcon(null); 47 setToolTipText( "");47 setToolTipText(null); 48 48 } 49 49 -
trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java
r6099 r6101 179 179 protected void setErrorMessage(JosmTextField tf, String msg) { 180 180 tf.setBorder(errorBorder); 181 if (msg==null) msg="";182 181 tf.setToolTipText(msg); 183 182 } -
trunk/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java
r6099 r6101 397 397 protected void setErrorFeedback(JosmTextField tf, String message) { 398 398 tf.setBorder(BorderFactory.createLineBorder(Color.RED, 1)); 399 if (message==null) message="";400 399 tf.setToolTipText(message); 401 400 tf.setBackground(BG_COLOR_ERROR); … … 404 403 protected void clearErrorFeedback(JosmTextField tf, String message) { 405 404 tf.setBorder(UIManager.getBorder("TextField.border")); 406 if (message==null) message="";407 405 tf.setToolTipText(message); 408 406 tf.setBackground(UIManager.getColor("TextField.background")); -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityAction.java
r6099 r6101 83 83 if (c instanceof JComponent) { 84 84 JComponent jc = (JComponent) c; 85 String val=(String) getValueAt(row, col); 86 jc.setToolTipText(val==null? "": val); 85 jc.setToolTipText((String) getValueAt(row, col)); 87 86 } 88 87 return c; -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r6099 r6101 310 310 if (icon != null) 311 311 setIconImage(icon.getImage()); 312 if (title==null) title="";313 312 contentInsets = new Insets(10,5,0,5); 314 313 if (showNewRelation) { -
trunk/src/org/openstreetmap/josm/gui/widgets/AbstractTextComponentValidator.java
r6099 r6101 51 51 tc.setBorder(ERROR_BORDER); 52 52 tc.setBackground(ERROR_BACKGROUND); 53 tc.setToolTipText(msg == null ? "" : msg);53 tc.setToolTipText(msg); 54 54 valid = false; 55 55 this.msg = msg; -
trunk/src/org/openstreetmap/josm/gui/widgets/ImageLabel.java
r6099 r6101 29 29 add(new JLabel(ImageProvider.get("statusline/"+img+".png")), GBC.std().anchor(GBC.WEST).insets(0,1,1,0)); 30 30 add(tf = new JLabel(), GBC.std().fill(GBC.BOTH).anchor(GBC.WEST).insets(2,1,1,0)); 31 setToolTipText(tooltip ==null ? "" : tooltip);31 setToolTipText(tooltip); 32 32 this.charCount = charCount; 33 33 } -
trunk/src/org/openstreetmap/josm/tools/UrlLabel.java
r6099 r6101 54 54 setText("<html>" + description + "</html>"); 55 55 setCursor(null); 56 setToolTipText( "");56 setToolTipText(null); 57 57 } 58 58 }
Note:
See TracChangeset
for help on using the changeset viewer.