Changeset 9972 in josm
- Timestamp:
- 2016-03-12T23:45:08+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
r9707 r9972 33 33 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 34 34 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 35 import org.openstreetmap.josm.gui.help.HelpUtil;36 35 import org.openstreetmap.josm.gui.widgets.AbstractFileChooser; 37 36 import org.openstreetmap.josm.io.AllFormatsImporter; … … 203 202 tr("Warning"), 204 203 JOptionPane.WARNING_MESSAGE, 205 HelpUtil.ht("/Action/Open#ImporterCantImportFiles")204 ht("/Action/Open#ImporterCantImportFiles") 206 205 ); 207 206 } … … 229 228 tr("Warning"), 230 229 JOptionPane.WARNING_MESSAGE, 231 HelpUtil.ht("/Action/Open#MissingImporterForFiles")230 ht("/Action/Open#MissingImporterForFiles") 232 231 ); 233 232 } -
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r9062 r9972 39 39 import org.openstreetmap.josm.gui.ExtendedDialog; 40 40 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 41 import org.openstreetmap.josm.gui.help.HelpUtil;42 41 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor; 43 42 import org.openstreetmap.josm.gui.widgets.HistoryComboBox; … … 238 237 HelpAwareOptionPane.showMessageDialogInEDT(Main.parent, "<html><p>" + tr( 239 238 "Cannot open URL ''{0}''<br>The following download tasks accept the URL patterns shown:<br>{1}", 240 url, details) + "</p></html>", tr("Download Location"), JOptionPane.ERROR_MESSAGE, HelpUtil.ht("/Action/OpenLocation"));239 url, details) + "</p></html>", tr("Download Location"), JOptionPane.ERROR_MESSAGE, ht("/Action/OpenLocation")); 241 240 } 242 241 -
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r9917 r9972 31 31 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 32 32 import org.openstreetmap.josm.gui.Notification; 33 import org.openstreetmap.josm.gui.help.HelpUtil;34 33 import org.openstreetmap.josm.tools.ImageProvider; 35 34 import org.openstreetmap.josm.tools.Shortcut; … … 59 58 .setIcon(JOptionPane.WARNING_MESSAGE) 60 59 .setDuration(Notification.TIME_SHORT) 61 .setHelpTopic( HelpUtil.ht("/Action/SimplifyWay#SelectAWayToSimplify"))60 .setHelpTopic(ht("/Action/SimplifyWay#SelectAWayToSimplify")) 62 61 .show(); 63 62 } … … 89 88 options, 90 89 options[0], 91 HelpUtil.ht("/Action/SimplifyWay#ConfirmSimplifyAll")90 ht("/Action/SimplifyWay#ConfirmSimplifyAll") 92 91 ); 93 92 } -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r9514 r9972 22 22 import org.openstreetmap.josm.data.conflict.ConflictCollection; 23 23 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 24 import org.openstreetmap.josm.gui.help.HelpUtil;25 24 import org.openstreetmap.josm.gui.io.UploadDialog; 26 25 import org.openstreetmap.josm.gui.io.UploadPrimitivesTask; … … 155 154 tr("Warning"), 156 155 JOptionPane.WARNING_MESSAGE, 157 HelpUtil.ht("/Action/Upload#PrimitivesParticipateInConflicts")156 ht("/Action/Upload#PrimitivesParticipateInConflicts") 158 157 ); 159 158 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java
r8510 r9972 162 162 */ 163 163 protected void restorePrimitivesHistory(HistoryComboBox cbHistory) { 164 java.util.List<String> cmtHistory = new LinkedList<>(164 List<String> cmtHistory = new LinkedList<>( 165 165 Main.pref.getCollection(getClass().getName() + ".primitivesHistory", new LinkedList<String>())); 166 166 // we have to reverse the history, because ComboBoxHistory will reverse it again in addElement() -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r9606 r9972 275 275 */ 276 276 @Override 277 public void characters(char[] data, int start, int length) throws org.xml.sax.SAXException {277 public void characters(char[] data, int start, int length) throws SAXException { 278 278 if (description != null) { 279 279 description.append(data, start, length); -
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r9644 r9972 4 4 import static org.openstreetmap.josm.gui.help.HelpUtil.buildAbsoluteHelpTopic; 5 5 import static org.openstreetmap.josm.gui.help.HelpUtil.getHelpTopicEditUrl; 6 import static org.openstreetmap.josm.gui.help.HelpUtil.getHelpTopicUrl; 6 7 import static org.openstreetmap.josm.tools.I18n.tr; 7 8 … … 298 299 */ 299 300 protected void loadRelativeHelpTopic(String relativeHelpTopic) { 300 String url = HelpUtil.getHelpTopicUrl(HelpUtil.buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.DEFAULTNOTENGLISH));301 String url = getHelpTopicUrl(buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.DEFAULTNOTENGLISH)); 301 302 String content = null; 302 303 try { 303 304 content = reader.fetchHelpTopicContent(url, true); 304 305 } catch (MissingHelpContentException e) { 305 url = HelpUtil.getHelpTopicUrl(HelpUtil.buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.BASELANGUAGE));306 url = getHelpTopicUrl(buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.BASELANGUAGE)); 306 307 try { 307 308 content = reader.fetchHelpTopicContent(url, true); 308 309 } catch (MissingHelpContentException e1) { 309 url = HelpUtil.getHelpTopicUrl(HelpUtil.buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.ENGLISH));310 url = getHelpTopicUrl(buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.ENGLISH)); 310 311 try { 311 312 content = reader.fetchHelpTopicContent(url, true); … … 341 342 */ 342 343 protected void loadAbsoluteHelpTopic(String absoluteHelpTopic) { 343 String url = HelpUtil.getHelpTopicUrl(absoluteHelpTopic);344 String url = getHelpTopicUrl(absoluteHelpTopic); 344 345 String content = null; 345 346 try { -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java
r9932 r9972 224 224 try { 225 225 this.nameTemplateFilter = SearchCompiler.compile(filter); 226 } catch ( org.openstreetmap.josm.actions.search.SearchCompiler.ParseError e) {226 } catch (SearchCompiler.ParseError e) { 227 227 Main.error("Error while parsing" + filter + ": " + e.getMessage()); 228 228 throw new SAXException(e); -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Text.java
r9665 r9972 135 135 JToggleButton aibutton = new JToggleButton(ai); 136 136 aibutton.setToolTipText(tr("Select auto-increment of {0} for this field", ai)); 137 aibutton.setMargin(new java.awt.Insets(0, 0, 0, 0));137 aibutton.setMargin(new Insets(0, 0, 0, 0)); 138 138 aibutton.setFocusable(false); 139 139 saveHorizontalSpace(aibutton); … … 165 165 JButton releasebutton = new JButton("X"); 166 166 releasebutton.setToolTipText(tr("Cancel auto-increment for this field")); 167 releasebutton.setMargin(new java.awt.Insets(0, 0, 0, 0));167 releasebutton.setMargin(new Insets(0, 0, 0, 0)); 168 168 releasebutton.setFocusable(false); 169 169 releasebutton.addActionListener(new ActionListener() { -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r9917 r9972 55 55 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 56 56 import org.openstreetmap.josm.gui.download.DownloadSelection; 57 import org.openstreetmap.josm.gui.help.HelpUtil;58 57 import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory; 59 58 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; … … 518 517 specs, 519 518 specs[0], 520 HelpUtil.ht("/Plugin/Loading#MissingRequiredPlugin"))) {519 ht("/Plugin/Loading#MissingRequiredPlugin"))) { 521 520 downloadRequiredPluginsAndRestart(parent, missingRequiredPlugin); 522 521 } … … 580 579 tr("Warning"), 581 580 JOptionPane.WARNING_MESSAGE, 582 HelpUtil.ht("/Plugin/Loading#JOSMUpdateRequired")581 ht("/Plugin/Loading#JOSMUpdateRequired") 583 582 ); 584 583 } … … 860 859 tr("Warning"), 861 860 JOptionPane.WARNING_MESSAGE, 862 HelpUtil.ht("/Plugin/Loading#MissingPluginInfos")861 ht("/Plugin/Loading#MissingPluginInfos") 863 862 ); 864 863 } … … 928 927 tr("Plugin update failed"), 929 928 JOptionPane.ERROR_MESSAGE, 930 HelpUtil.ht("/Plugin/Loading#FailedPluginUpdated")929 ht("/Plugin/Loading#FailedPluginUpdated") 931 930 ); 932 931 }
Note:
See TracChangeset
for help on using the changeset viewer.