public class JIPipeCustomMenuRegistry extends Object
Constructor and Description |
---|
JIPipeCustomMenuRegistry(JIPipe jiPipe) |
Modifier and Type | Method and Description |
---|---|
JIPipe |
getJIPipe() |
List<JIPipeMenuExtension> |
getMenuExtensionsTargeting(JIPipeMenuExtensionTarget target,
JIPipeWorkbench workbench)
Gets all extensions for a specific menu
|
List<NodeUIContextAction> |
getRegisteredContextMenuActions()
Gets the registered context menu actions
|
Map<JIPipeMenuExtensionTarget,List<Class<? extends JIPipeMenuExtension>>> |
getRegisteredMenuExtensions() |
List<GraphEditorToolBarButtonExtension> |
graphEditorToolBarButtonExtensionsFor(JIPipeGraphEditorUI graphEditorUI) |
void |
registerContextMenuAction(NodeUIContextAction action)
Registers a new context menu action.
|
void |
registerGraphEditorToolBarButton(Class<? extends GraphEditorToolBarButtonExtension> klass)
Registers a new button for the graph editor.
|
void |
registerMenu(Class<? extends JIPipeMenuExtension> extension)
Registers a new extension
|
public JIPipeCustomMenuRegistry(JIPipe jiPipe)
public void registerMenu(Class<? extends JIPipeMenuExtension> extension)
extension
- the extensionpublic List<JIPipeMenuExtension> getMenuExtensionsTargeting(JIPipeMenuExtensionTarget target, JIPipeWorkbench workbench)
target
- the menuworkbench
- the workbenchpublic List<GraphEditorToolBarButtonExtension> graphEditorToolBarButtonExtensionsFor(JIPipeGraphEditorUI graphEditorUI)
public Map<JIPipeMenuExtensionTarget,List<Class<? extends JIPipeMenuExtension>>> getRegisteredMenuExtensions()
public void registerGraphEditorToolBarButton(Class<? extends GraphEditorToolBarButtonExtension> klass)
klass
- the classpublic void registerContextMenuAction(NodeUIContextAction action)
action
- the actionpublic List<NodeUIContextAction> getRegisteredContextMenuActions()
public JIPipe getJIPipe()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.