public class ModuleSearcher extends Object implements Searcher
Searcher
plugin for SciJava modules.Constructor and Description |
---|
ModuleSearcher() |
Modifier and Type | Method and Description |
---|---|
static String |
iconPath(ModuleInfo info)
Gets the icon path associated with the given module.
|
static String |
location(ModuleInfo info,
String baseDir)
Gets an abbreviated location for the given module.
|
List<SearchResult> |
search(String text,
boolean fuzzy)
Searches for the given text.
|
String |
title()
Short descriptive string identifying the sort of results found by this
plugin.
|
static String |
title(ModuleInfo info)
Gets a human-readable title for the module, or null if none.
|
public String title()
Searcher
public List<SearchResult> search(String text, boolean fuzzy)
Searcher
public static String title(ModuleInfo info)
We do not use ModuleInfo.getTitle()
because that method tries very
hard to return something in every case, whereas we only want to give really
nice titles, or null if the module is inappropriate.
public static String iconPath(ModuleInfo info)
public static String location(ModuleInfo info, String baseDir)
Copyright © 2015–2022 SciJava. All rights reserved.