本文整理汇总了Java中org.scijava.plugin.PluginService类的典型用法代码示例。如果您正苦于以下问题:Java PluginService类的具体用法?Java PluginService怎么用?Java PluginService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PluginService类属于org.scijava.plugin包,在下文中一共展示了PluginService类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: main
import org.scijava.plugin.PluginService; //导入依赖的package包/类
public static void main(String... args) {
final Context context = new Context();
// Remove the Display and Results post-processors to prevent output
// windows from being displayed
final PluginService pluginService = context.service(PluginService.class);
final PluginInfo<SciJavaPlugin> display = pluginService.getPlugin(DisplayPostprocessor.class);
final PluginInfo<SciJavaPlugin> results = pluginService.getPlugin(ResultsPostprocessor.class);
pluginService.removePlugin(display);
pluginService.removePlugin(results);
JupyterService jupyter = context.service(JupyterService.class);
jupyter.runKernel(args);
context.dispose();
}
开发者ID:scijava,项目名称:scijava-jupyter-kernel,代码行数:17,代码来源:ScijavaKernel.java
示例2: DataTypeIDService
import org.scijava.plugin.PluginService; //导入依赖的package包/类
public DataTypeIDService(ImageJ ij) {
this.ij = ij;
ps = ij.get(PluginService.class);
buildDataElementIndex();
buildElementReaderIndex();
buildElementWriterIndex();
buildMimeReadableIndex();
buildTypeAliasIndex();
}
开发者ID:bnanes,项目名称:slideset,代码行数:10,代码来源:DataTypeIDService.java
示例3: buildOtherCommandsMenu
import org.scijava.plugin.PluginService; //导入依赖的package包/类
/** Build the menu listing other ImageJ commands */
private JMenu buildOtherCommandsMenu() {
JMenu m = new JMenu("Other ImageJ Commands");
m.add(new JMenu("Edit "));
m.add(new JMenu("Image "));
m.add(new JMenu("Process "));
m.add(new JMenu("Analyze "));
m.add(new JMenu("Plugins "));
/*MenuService ijms = ij.getService(MenuService.class); // Possible alternative way to do this?
SwingJMenuCreator ijmc = new SwingJMenuCreator();
ShadowMenu ijMenu = ijms.getMenu();
ijmc.createMenus(ijMenu, m);*/
PluginService ps = ij.get(PluginService.class);
List<PluginInfo<Command>> plugins = ps.getPluginsOfType(Command.class);
for(PluginInfo<Command> plugin : plugins) {
String[] path = plugin.getMenuPath().getMenuString().split(MenuPath.PATH_SEPARATOR);
String command = "ijps/" + plugin.getClassName();
if(path != null && !path[0].equals("") && path.length > 1
&& !path[0].equals("File ")
&& !path[0].equals("Window ")
&& !path[0].equals("Help ")
&& plugin.getAnnotation() != null
&& plugin.getAnnotation().visible())
UIUtil.parseRecursiveMenuAdd(path, command, m, this);
}
return m;
}
开发者ID:bnanes,项目名称:slideset,代码行数:28,代码来源:SlideSetLauncher.java
示例4: XMLService
import org.scijava.plugin.PluginService; //导入依赖的package包/类
public XMLService(ImageJ context, DataTypeIDService dtid) {
this.ij = context;
this.ps = ij.get(PluginService.class);
this.dtid = dtid;
}
开发者ID:bnanes,项目名称:slideset,代码行数:6,代码来源:XMLService.java
注:本文中的org.scijava.plugin.PluginService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论