Search in sources :

Example 1 with DiagramNodeTemplate

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;
}
Also used : SapphireDiagramEditorPagePart(org.eclipse.sapphire.ui.diagram.editor.SapphireDiagramEditorPagePart) DiagramNodeTemplate(org.eclipse.sapphire.ui.diagram.editor.DiagramNodeTemplate) ArrayList(java.util.ArrayList) SapphireActionHandler(org.eclipse.sapphire.ui.SapphireActionHandler)

Aggregations

ArrayList (java.util.ArrayList)1 SapphireActionHandler (org.eclipse.sapphire.ui.SapphireActionHandler)1 DiagramNodeTemplate (org.eclipse.sapphire.ui.diagram.editor.DiagramNodeTemplate)1 SapphireDiagramEditorPagePart (org.eclipse.sapphire.ui.diagram.editor.SapphireDiagramEditorPagePart)1