Ignore:
Timestamp:
2010-05-11T09:25:21+02:00 (14 years ago)
Author:
jttt
Message:

Fix #2297 JOSM Webstart fails at loading plugins, cleanup puwg projection

File:
1 edited

Legend:

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

    r3131 r3232  
    6363 * PluginHandler is basically a collection of static utility functions used to bootstrap
    6464 * and manage the loaded plugins.
    65  * 
     65 *
    6666 */
    6767public class PluginHandler {
     
    8484     * Removes deprecated plugins from a collection of plugins. Modifies the
    8585     * collection <code>plugins</code>.
    86      * 
     86     *
    8787     * Also notifies the user about removed deprecated plugins
    88      * 
     88     *
    8989     * @param plugins the collection of plugins
    9090     */
     
    128128     * collection <code>plugins</code>. Also removes the plugin from the list
    129129     * of plugins in the preferences, if necessary.
    130      * 
     130     *
    131131     * Asks the user for every unmaintained plugin whether it should be removed.
    132      * 
     132     *
    133133     * @param plugins the collection of plugins
    134134     */
     
    153153     * JOSM was updated to a new version since the last plugin updates or
    154154     * if the plugins were last updated a long time ago.
    155      * 
     155     *
    156156     * @param parent the parent window relative to which the confirmation dialog
    157157     * is to be displayed
     
    261261    /**
    262262     * Alerts the user if a plugin required by another plugin is missing
    263      * 
     263     *
    264264     * @param plugin the the plugin
    265265     * @param missingRequiredPlugin the missing required plugin
     
    304304     * current JOSM version must be compatible with the plugin and no other plugins this plugin
    305305     * depends on should be missing.
    306      * 
     306     *
    307307     * @param plugins the collection of all loaded plugins
    308308     * @param plugin the plugin for which preconditions are checked
     
    342342    /**
    343343     * Creates a class loader for loading plugin code.
    344      * 
     344     *
    345345     * @param plugins the collection of plugins which are going to be loaded with this
    346346     * class loader
     
    371371     * Loads and instantiates the plugin described by <code>plugin</code> using
    372372     * the class loader <code>pluginClassLoader</code>.
    373      * 
     373     *
    374374     * @param plugin the plugin
    375375     * @param pluginClassLoader the plugin class loader
     
    383383            }
    384384        } catch(PluginException e) {
     385            e.printStackTrace();
    385386            if (e.getCause() instanceof ClassNotFoundException) {
    386                 e.printStackTrace();
    387387                String msg = tr("<html>Could not load plugin {0} because the plugin<br>main class ''{1}'' was not found.<br>"
    388388                        + "Delete from preferences?", plugin.name, plugin.className);
     
    403403     * Loads the plugin in <code>plugins</code> from locally available jar files into
    404404     * memory.
    405      * 
     405     *
    406406     * @param plugins the list of plugins
    407407     * @param monitor the progress monitor. Defaults to {@see NullProgressMonitor#INSTANCE} if null.
     
    452452     * Loads plugins from <code>plugins</code> which have the flag {@see PluginInformation#early}
    453453     * set to true.
    454      * 
     454     *
    455455     * @param plugins the collection of plugins
    456456     * @param monitor the progress monitor. Defaults to {@see NullProgressMonitor#INSTANCE} if null.
     
    469469     * Loads plugins from <code>plugins</code> which have the flag {@see PluginInformation#early}
    470470     * set to false.
    471      * 
     471     *
    472472     * @param plugins the collection of plugins
    473473     * @param monitor the progress monitor. Defaults to {@see NullProgressMonitor#INSTANCE} if null.
     
    489489     * @param monitor the progress monitor. Defaults to {@see NullProgressMonitor#INSTANCE} if null.
    490490     * @return the list of locally available plugin information
    491      * 
     491     *
    492492     */
    493493    private static Map<String, PluginInformation> loadLocallyAvailablePluginInformation(ProgressMonitor monitor) {
     
    614614    /**
    615615     * Updates the plugins in <code>plugins</code>.
    616      * 
     616     *
    617617     * @param parent the parent window for message boxes
    618618     * @param plugins the collection of plugins to update. Must not be null.
     
    696696    /**
    697697     * Ask the user for confirmation that a plugin shall be disabled.
    698      * 
     698     *
    699699     * @param reason the reason for disabling the plugin
    700700     * @param name the plugin name
     
    731731    /**
    732732     * Notified loaded plugins about a new map frame
    733      * 
     733     *
    734734     * @param old the old map frame
    735735     * @param map the new map frame
     
    763763     * Installs downloaded plugins. Moves files with the suffix ".jar.new" to the corresponding
    764764     * ".jar" files.
    765      * 
     765     *
    766766     * If {@code dowarn} is true, this methods emits warning messages on the console if a downloaded
    767767     * but not yet installed plugin .jar can't be be installed. If {@code dowarn} is false, the
    768768     * installation of the respective plugin is sillently skipped.
    769      * 
     769     *
    770770     * @param dowarn if true, warning messages are displayed; false otherwise
    771771     */
     
    843843    /**
    844844     * Replies the plugin which most likely threw the exception <code>ex</code>.
    845      * 
     845     *
    846846     * @param ex the exception
    847847     * @return the plugin; null, if the exception proably wasn't thrown from a plugin
     
    864864     * Checks whether the exception <code>e</code> was thrown by a plugin. If so,
    865865     * conditionally deactivates the plugin, but asks the user first.
    866      * 
     866     *
    867867     * @param e the exception
    868868     */
     
    914914            String version = pp.getPluginInformation().localversion;
    915915            text += version != null && !version.equals("") ? " (Version: " + version + ")\n"
    916                         : "\n";
     916                    : "\n";
    917917        }
    918918        return text;
Note: See TracChangeset for help on using the changeset viewer.