Changeset 9972 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-03-12T23:45:08+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - remove unnecessary fully qualified names

Location:
trunk/src/org/openstreetmap/josm
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java

    r9707 r9972  
    3333import org.openstreetmap.josm.gui.HelpAwareOptionPane;
    3434import org.openstreetmap.josm.gui.PleaseWaitRunnable;
    35 import org.openstreetmap.josm.gui.help.HelpUtil;
    3635import org.openstreetmap.josm.gui.widgets.AbstractFileChooser;
    3736import org.openstreetmap.josm.io.AllFormatsImporter;
     
    203202                    tr("Warning"),
    204203                    JOptionPane.WARNING_MESSAGE,
    205                     HelpUtil.ht("/Action/Open#ImporterCantImportFiles")
     204                    ht("/Action/Open#ImporterCantImportFiles")
    206205            );
    207206        }
     
    229228                    tr("Warning"),
    230229                    JOptionPane.WARNING_MESSAGE,
    231                     HelpUtil.ht("/Action/Open#MissingImporterForFiles")
     230                    ht("/Action/Open#MissingImporterForFiles")
    232231            );
    233232        }
  • trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java

    r9062 r9972  
    3939import org.openstreetmap.josm.gui.ExtendedDialog;
    4040import org.openstreetmap.josm.gui.HelpAwareOptionPane;
    41 import org.openstreetmap.josm.gui.help.HelpUtil;
    4241import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;
    4342import org.openstreetmap.josm.gui.widgets.HistoryComboBox;
     
    238237        HelpAwareOptionPane.showMessageDialogInEDT(Main.parent, "<html><p>" + tr(
    239238                "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"));
    241240    }
    242241
  • trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r9917 r9972  
    3131import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;
    3232import org.openstreetmap.josm.gui.Notification;
    33 import org.openstreetmap.josm.gui.help.HelpUtil;
    3433import org.openstreetmap.josm.tools.ImageProvider;
    3534import org.openstreetmap.josm.tools.Shortcut;
     
    5958                .setIcon(JOptionPane.WARNING_MESSAGE)
    6059                .setDuration(Notification.TIME_SHORT)
    61                 .setHelpTopic(HelpUtil.ht("/Action/SimplifyWay#SelectAWayToSimplify"))
     60                .setHelpTopic(ht("/Action/SimplifyWay#SelectAWayToSimplify"))
    6261                .show();
    6362    }
     
    8988                        options,
    9089                        options[0],
    91                         HelpUtil.ht("/Action/SimplifyWay#ConfirmSimplifyAll")
     90                        ht("/Action/SimplifyWay#ConfirmSimplifyAll")
    9291                );
    9392    }
  • trunk/src/org/openstreetmap/josm/actions/UploadAction.java

    r9514 r9972  
    2222import org.openstreetmap.josm.data.conflict.ConflictCollection;
    2323import org.openstreetmap.josm.gui.HelpAwareOptionPane;
    24 import org.openstreetmap.josm.gui.help.HelpUtil;
    2524import org.openstreetmap.josm.gui.io.UploadDialog;
    2625import org.openstreetmap.josm.gui.io.UploadPrimitivesTask;
     
    155154                tr("Warning"),
    156155                JOptionPane.WARNING_MESSAGE,
    157                 HelpUtil.ht("/Action/Upload#PrimitivesParticipateInConflicts")
     156                ht("/Action/Upload#PrimitivesParticipateInConflicts")
    158157        );
    159158    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java

    r8510 r9972  
    162162     */
    163163    protected void restorePrimitivesHistory(HistoryComboBox cbHistory) {
    164         java.util.List<String> cmtHistory = new LinkedList<>(
     164        List<String> cmtHistory = new LinkedList<>(
    165165                Main.pref.getCollection(getClass().getName() + ".primitivesHistory", new LinkedList<String>()));
    166166        // 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  
    275275         */
    276276        @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 {
    278278            if (description != null) {
    279279                description.append(data, start, length);
  • trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java

    r9644 r9972  
    44import static org.openstreetmap.josm.gui.help.HelpUtil.buildAbsoluteHelpTopic;
    55import static org.openstreetmap.josm.gui.help.HelpUtil.getHelpTopicEditUrl;
     6import static org.openstreetmap.josm.gui.help.HelpUtil.getHelpTopicUrl;
    67import static org.openstreetmap.josm.tools.I18n.tr;
    78
     
    298299     */
    299300    protected void loadRelativeHelpTopic(String relativeHelpTopic) {
    300         String url = HelpUtil.getHelpTopicUrl(HelpUtil.buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.DEFAULTNOTENGLISH));
     301        String url = getHelpTopicUrl(buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.DEFAULTNOTENGLISH));
    301302        String content = null;
    302303        try {
    303304            content = reader.fetchHelpTopicContent(url, true);
    304305        } catch (MissingHelpContentException e) {
    305             url = HelpUtil.getHelpTopicUrl(HelpUtil.buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.BASELANGUAGE));
     306            url = getHelpTopicUrl(buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.BASELANGUAGE));
    306307            try {
    307308                content = reader.fetchHelpTopicContent(url, true);
    308309            } catch (MissingHelpContentException e1) {
    309                 url = HelpUtil.getHelpTopicUrl(HelpUtil.buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.ENGLISH));
     310                url = getHelpTopicUrl(buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.ENGLISH));
    310311                try {
    311312                    content = reader.fetchHelpTopicContent(url, true);
     
    341342     */
    342343    protected void loadAbsoluteHelpTopic(String absoluteHelpTopic) {
    343         String url = HelpUtil.getHelpTopicUrl(absoluteHelpTopic);
     344        String url = getHelpTopicUrl(absoluteHelpTopic);
    344345        String content = null;
    345346        try {
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java

    r9932 r9972  
    224224        try {
    225225            this.nameTemplateFilter = SearchCompiler.compile(filter);
    226         } catch (org.openstreetmap.josm.actions.search.SearchCompiler.ParseError e) {
     226        } catch (SearchCompiler.ParseError e) {
    227227            Main.error("Error while parsing" + filter + ": " + e.getMessage());
    228228            throw new SAXException(e);
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Text.java

    r9665 r9972  
    135135                JToggleButton aibutton = new JToggleButton(ai);
    136136                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));
    138138                aibutton.setFocusable(false);
    139139                saveHorizontalSpace(aibutton);
     
    165165            JButton releasebutton = new JButton("X");
    166166            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));
    168168            releasebutton.setFocusable(false);
    169169            releasebutton.addActionListener(new ActionListener() {
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r9917 r9972  
    5555import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;
    5656import org.openstreetmap.josm.gui.download.DownloadSelection;
    57 import org.openstreetmap.josm.gui.help.HelpUtil;
    5857import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory;
    5958import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
     
    518517                specs,
    519518                specs[0],
    520                 HelpUtil.ht("/Plugin/Loading#MissingRequiredPlugin"))) {
     519                ht("/Plugin/Loading#MissingRequiredPlugin"))) {
    521520            downloadRequiredPluginsAndRestart(parent, missingRequiredPlugin);
    522521        }
     
    580579                tr("Warning"),
    581580                JOptionPane.WARNING_MESSAGE,
    582                 HelpUtil.ht("/Plugin/Loading#JOSMUpdateRequired")
     581                ht("/Plugin/Loading#JOSMUpdateRequired")
    583582        );
    584583    }
     
    860859                tr("Warning"),
    861860                JOptionPane.WARNING_MESSAGE,
    862                 HelpUtil.ht("/Plugin/Loading#MissingPluginInfos")
     861                ht("/Plugin/Loading#MissingPluginInfos")
    863862        );
    864863    }
     
    928927                tr("Plugin update failed"),
    929928                JOptionPane.ERROR_MESSAGE,
    930                 HelpUtil.ht("/Plugin/Loading#FailedPluginUpdated")
     929                ht("/Plugin/Loading#FailedPluginUpdated")
    931930        );
    932931    }
Note: See TracChangeset for help on using the changeset viewer.