factory.fillMenu(editor, subMenu, node);
}
});
// add the delete item
if (node != null && node instanceof Route == false) {
DeleteNodeAction deleteNodeAction = new DeleteNodeAction();
deleteNodeAction.setSelectedNode(node);
menu.add(deleteNodeAction);
}
// add a separator
menu.add(new Separator());