private String getActions(int par, int chi) {
        String actionLine = "";
        String[] actions = c.widgets.get(par, chi).getActions();
        if (actions != null) {
            for (int i = 0; i < actions.length; i++) {
                if (actions[i] != null) {
                    if (!actions[i].startsWith(" ") || !actions[i].isEmpty()) {
                        actionLine = actionLine + actions[i];
                        if (i < actions.length - 1) {
                            actionLine = actionLine + ", ";
                        }
                    }
                }
            }
        }
        return actionLine;
    }