File tree 1 file changed +3
-3
lines changed
src/main/java/org/scijava/menu
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -230,17 +230,17 @@ public URL getIconURL() {
230
230
if (isLeaf ()) iconPath = DEFAULT_ICON_PATH ;
231
231
else return null ;
232
232
}
233
- final String className = moduleInfo .getDelegateClassName ();
234
233
try {
235
- final Class <?> c = Types . load ( className , false );
234
+ final Class <?> c = moduleInfo . loadDelegateClass ( );
236
235
final URL iconURL = c .getResource (iconPath );
237
236
if (iconURL == null ) {
238
237
if (log != null ) log .error ("Could not load icon: " + iconPath );
239
238
}
240
239
return iconURL ;
241
240
}
242
241
catch (final IllegalArgumentException exc ) {
243
- final String message = "Could not load icon for class: " + className ;
242
+ final String message = "Could not load icon for class: " +
243
+ moduleInfo .getDelegateClassName ();
244
244
if (log .isDebug ()) log .debug (message , exc );
245
245
else log .error (message );
246
246
return null ;
You can’t perform that action at this time.
0 commit comments