Last change
on this file since 3486 was 2817, checked in by Gubaer, 14 years ago |
fixed #3063: Downloading a plugin yields 3 dialogs at the same time: Downloading plugin / You should restart JOSM / Plugin downloaded
fixed #3628: JOSM blocking itself updating broken plugin
fixed #4187: JOSM deleted random files from disk after start (data loss)
fixed #4199: new version - plugins update vs josm start [should be fixed. Be careful if you have two JOSM instances running. Auto-update of plugins in the second instance will fail because plugin files are locked by the first instance]
fixed #4034: JOSM should auto-download plugin list when it hasn't been downloaded before [JOSM now displays a hint]
fixed: splash screen showing again even if plugins are auto-updated
new: progress indication integrated in splash screen
new: cancelable, asynchronous download of plugins from preferences
new: cancelable, asynchronous download of plugin list from plugin download sites
new: asynchronous loading of plugin information, launch of preferences dialog accelerated
refactored: clean up, documentation of plugin management code (PluginHandler)
|
-
Property svn:eol-style
set to
native
|
File size:
1.0 KB
|
Rev | Line | |
---|
[298] | 1 | // License: GPL. Copyright 2007 by Immanuel Scholz and others
|
---|
[626] | 2 | package org.openstreetmap.josm.plugins;
|
---|
| 3 |
|
---|
| 4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
| 5 |
|
---|
| 6 | /**
|
---|
| 7 | * Exception that wraps any exception thrown by plugins. It is used in the JOSM main system
|
---|
| 8 | * and there is no particular reason to use this within the plugin itself (although there
|
---|
| 9 | * is also no reason against this.. ;)
|
---|
[1169] | 10 | *
|
---|
[626] | 11 | * @author Immanuel.Scholz
|
---|
| 12 | */
|
---|
[2817] | 13 | public class PluginException extends Exception {
|
---|
[1169] | 14 | public final PluginProxy plugin;
|
---|
| 15 | public final String name;
|
---|
[626] | 16 |
|
---|
[1169] | 17 | public PluginException(PluginProxy plugin, String name, Throwable cause) {
|
---|
[1189] | 18 | super(tr("An error occurred in plugin {0}", name), cause);
|
---|
[1169] | 19 | this.plugin = plugin;
|
---|
| 20 | this.name = name;
|
---|
[626] | 21 | }
|
---|
[2817] | 22 |
|
---|
| 23 | public PluginException(String name, String message) {
|
---|
| 24 | super(message);
|
---|
| 25 | this.plugin = null;
|
---|
| 26 | this.name = name;
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | public PluginException(String name, Throwable cause) {
|
---|
| 30 | super(tr("An error occurred in plugin {0}", name), cause);
|
---|
| 31 | this.plugin = null;
|
---|
| 32 | this.name = name;
|
---|
| 33 | }
|
---|
[2512] | 34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.