use of org.eclipse.sapphire.ui.diagram.editor.DiagramNodeTemplate in project liferay-ide by liferay.
the class KaleoNodeAddActionHandlerFactory method create.
@Override
public List<SapphireActionHandler> create() {
List<SapphireActionHandler> handlers = new ArrayList<>();
SapphireDiagramEditorPagePart diagramPart = (SapphireDiagramEditorPagePart) getPart();
for (DiagramNodeTemplate nodeTemplate : diagramPart.getVisibleNodeTemplates()) {
NewNodeAddActionHandler addNodeHandler = _createKaleoNodeActionHandlerForTemplate(nodeTemplate);
handlers.add(addNodeHandler);
}
return handlers;
}
Aggregations