Changeset 2855 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2010-01-14T10:26:13+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r2853 r2855 657 657 } 658 658 659 if (plugin == null) 660 { 659 if (plugin == null) { 661 660 /** 662 661 * Analyze the stack of the argument and find a name of a plugin, if 663 662 * some known problem pattern has been found. 664 663 */ 665 for (PluginProxy p : pluginList) 666 { 664 for (PluginProxy p : pluginList) { 667 665 String baseClass = p.getPluginInformation().className; 668 666 int i = baseClass.lastIndexOf("."); 669 667 baseClass = baseClass.substring(0, i); 670 for (StackTraceElement element : e.getStackTrace()) 671 { 668 for (StackTraceElement element : e.getStackTrace()) { 672 669 String c = element.getClassName(); 673 if(c.startsWith(baseClass)) 674 { 670 if (c.startsWith(baseClass)) { 675 671 plugin = p; 676 672 break; 677 673 } 678 674 } 679 if (plugin != null) {675 if (plugin != null) { 680 676 break; 681 677 }
Note:
See TracChangeset
for help on using the changeset viewer.