Skip to content

Commit

Permalink
ScriptService: don't alias plugins w/ noAlias flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Jan 26, 2024
1 parent c7b6dc4 commit fd95150
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/scijava/script/DefaultScriptService.java
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ private void addAliases(final HashMap<String, Class<?>> map,
}

private Class<?>[] pluginClasses(final Class<? extends SciJavaPlugin> type) {
return pluginService.getPluginsOfType(type).stream().map(info -> {
return pluginService.getPluginsOfType(type).stream() //
.filter(info -> !info.is("noAlias")) //
.map(info ->
{
try {
return info.loadClass();
}
Expand Down

0 comments on commit fd95150

Please sign in to comment.