Ignore:
Timestamp:
2015-06-20T14:36:00+02:00 (4 years ago)
Author:
Don-vip
Message:

fix many checkstyle violations

Location:
trunk/src/org/openstreetmap/josm/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r8471 r8509  
    614614     * @since 5601
    615615     */
    616     public static boolean checkRequiredPluginsPreconditions(Component parent, Collection<PluginInformation> plugins, PluginInformation plugin, boolean local) {
     616    public static boolean checkRequiredPluginsPreconditions(Component parent, Collection<PluginInformation> plugins,
     617            PluginInformation plugin, boolean local) {
    617618
    618619        String requires = local ? plugin.localrequires : plugin.requires;
     
    11731174            if (plugin.exists() && !plugin.delete() && dowarn) {
    11741175                Main.warn(tr("Failed to delete outdated plugin ''{0}''.", plugin.toString()));
    1175                 Main.warn(tr("Failed to install already downloaded plugin ''{0}''. Skipping installation. JOSM is still going to load the old plugin version.", pluginName));
     1176                Main.warn(tr("Failed to install already downloaded plugin ''{0}''. Skipping installation. JOSM is still going to load the old plugin version.",
     1177                        pluginName));
    11761178                continue;
    11771179            }
     
    11811183            } catch (Exception e) {
    11821184                if (dowarn) {
    1183                     Main.warn(tr("Failed to install plugin ''{0}'' from temporary download file ''{1}''. {2}", plugin.toString(), updatedPlugin.toString(), e.getLocalizedMessage()));
     1185                    Main.warn(tr("Failed to install plugin ''{0}'' from temporary download file ''{1}''. {2}",
     1186                            plugin.toString(), updatedPlugin.toString(), e.getLocalizedMessage()));
    11841187                }
    11851188                continue;
     
    11871190            // Install plugin
    11881191            if (!updatedPlugin.renameTo(plugin) && dowarn) {
    1189                 Main.warn(tr("Failed to install plugin ''{0}'' from temporary download file ''{1}''. Renaming failed.", plugin.toString(), updatedPlugin.toString()));
    1190                 Main.warn(tr("Failed to install already downloaded plugin ''{0}''. Skipping installation. JOSM is still going to load the old plugin version.", pluginName));
     1192                Main.warn(tr("Failed to install plugin ''{0}'' from temporary download file ''{1}''. Renaming failed.",
     1193                        plugin.toString(), updatedPlugin.toString()));
     1194                Main.warn(tr("Failed to install already downloaded plugin ''{0}''. Skipping installation. JOSM is still going to load the old plugin version.",
     1195                        pluginName));
    11911196            }
    11921197        }
  • trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java

    r8461 r8509  
    221221    }
    222222
    223     private void displayErrorMessage(final ProgressMonitor monitor, final String msg, final String details, final String title, final String firstMessage) {
     223    private void displayErrorMessage(final ProgressMonitor monitor, final String msg, final String details, final String title,
     224            final String firstMessage) {
    224225        GuiHelper.runInEDTAndWait(new Runnable() {
    225226            @Override public void run() {
     
    255256        File pluginDir = Main.pref.getPluginsDirectory();
    256257        if (!pluginDir.exists() && !pluginDir.mkdirs()) {
    257             Main.warn(tr("Failed to create plugin directory ''{0}''. Cannot cache plugin list from plugin site ''{1}''.", pluginDir.toString(), site));
     258            Main.warn(tr("Failed to create plugin directory ''{0}''. Cannot cache plugin list from plugin site ''{1}''.",
     259                    pluginDir.toString(), site));
    258260        }
    259261        File cacheFile = createSiteCacheFile(pluginDir, site);
Note: See TracChangeset for help on using the changeset viewer.