@Override
    public void installMenuItems(ProjectTreeComponent projectTree) {
        projectTree.installContextMenu(TableProperty.class, (treeCell, node) -> {
            final MenuItem enableColumns  = new MenuItem(ENABLE_ALL_COLUMNS);
            final MenuItem disableColumns = new MenuItem(DISABLE_ALL_COLUMNS);

            enableColumns.setOnAction(ev ->
                DocumentUtil.traverseOver(node)
                    .filter(ColumnProperty.class::isInstance)
                    .forEach(doc -> ((ColumnProperty) doc).enabledProperty().setValue(true))
            );

            disableColumns.setOnAction(ev ->
                DocumentUtil.traverseOver(node)
                    .filter(ColumnProperty.class::isInstance)
                    .forEach(doc -> ((ColumnProperty) doc).enabledProperty().setValue(false))
            );

            return Stream.of(enableColumns, disableColumns);
        });
    }
Default implementation of the {@link ToggleTablesEnabledAction}-interface.

@author Emil Forslund
@since  3.0.17
tool-parent/tool-actions/src/main/java/com/speedment/tool/actions/internal/menues/ToggleColumnsEnabledActionImpl.java