Changeset 3136
- Timestamp:
- 03/02/10 18:46:42 (5 months ago)
- Location:
- trunk/src/swing/org/pathvisio
- Files:
-
- 2 modified
-
gui/swing/GuiMain.java (modified) (1 diff)
-
plugin/PluginManager.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/swing/org/pathvisio/gui/swing/GuiMain.java
r3080 r3136 409 409 410 410 // load plugins from the default plugin dir 411 pluginLocations.add("" + new File (GlobalPreference.getApplicationDir(), "plugins")); 411 File pluginDir = new File (GlobalPreference.getApplicationDir(), "plugins"); 412 if (pluginDir.exists()) { 413 pluginLocations.add("" + pluginDir); 414 } 412 415 processOptions(); 413 416 } -
trunk/src/swing/org/pathvisio/plugin/PluginManager.java
r2979 r3136 109 109 return; 110 110 } 111 // see if it is a jar file. 111 112 if(file.getName().endsWith(".jar")) 112 113 { … … 116 117 } 117 118 } 118 //Otherwise, try to load the class directly 119 //It's not a directory or a jar file. 120 //Try to load the class directly 119 121 Logger.log.info("No jar or dir found, assuming plugin argument is a class " + param); 120 122 PluginInfo inf = new PluginInfo(); … … 206 208 } 207 209 } catch(Throwable ex) { 208 Logger.log.error("\tUnable to load plugin ", ex);210 Logger.log.error("\tUnable to load plugin '" + className + "'", ex); 209 211 inf.error = ex; 210 212 info.add(inf);
