We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e243eb9 commit e1d4caaCopy full SHA for e1d4caa
src/main/java/org/scijava/script/ScriptREPL.java
@@ -386,6 +386,11 @@ private List<Gateway> gateways() {
386
}
387
388
private String serviceName(final Service service) {
389
+ final PluginInfo<?> info = service.getInfo();
390
+ final String pluginName = info == null ? null : info.getName();
391
+ // Name was explicitly given in the @Plugin annotation.
392
+ if (pluginName != null && !pluginName.isEmpty()) return pluginName;
393
+ // No name was given; synthesize one from the class name.
394
final String serviceName = service.getClass().getSimpleName();
395
final String shortName = lowerCamelCase(
396
serviceName.replaceAll("^(Default)?(.*)Service$", "$2"));
0 commit comments