Table Initializer method not identified

Cuba Studio reports me that initializer methods of TreeDataGrid are not used.

image

Below is the code of the TreeDataGrid.

<treeDataGrid id="tasksTable"
                              width="100%"
                              dataContainer="taskPlanDc"
                              hierarchyProperty="parentTask">
                    <actions>
                        <action id="create" type="create" caption="msg://new"/>
                        <action id="edit" type="edit"/>
                        <action id="remove" type="remove"/>
                        <action id="rasci" type="rasci"/>
                        <action id="createChild" type="createChild"/>
                        <action id="createParent" type="createParent"/>
                    </actions>
                    <columns>
                        <column property="taskName"/>
                        <column property="taskType"/>
                        <column property="assignedTo"/>
                        <column property="frequency"/>
                        <column property="priority"/>
                        <column property="location"/>
                        <column property="asset"/>
                        <column property="estimatedHours"/>
                    </columns>
                    <buttonsPanel id="buttonsPanel"
                                  alwaysVisible="true">
                        <popupButton id="createPopupBtn" caption="Create">
                            <actions>
                                <action id="tasksTable.create"/>
                                <action id="tasksTable.createChild"/>
                                <action id="tasksTable.createParent"/>
                            </actions>
                        </popupButton>
                        <button id="editBtn" action="tasksTable.edit"/>
                        <button id="removeBtn" action="tasksTable.remove"/>
                        <button id="generateRasci" action="tasksTable.rasci"/>
                    </buttonsPanel>
                </treeDataGrid>

This TreeDataGrid is in a Tabsheet. I think there is some bug in studio which states this warning.

Thanks,
Hari

Hi.
initializer is a parameter specific to the CreateAction class. As I can see, you try to apply the method for custom action type. Studio check that your action does not extends com.haulmont.cuba.gui.actions.list.CreateAction class or defined in XML using type="create" action’s attribute, that’s why method is marked as unused.

See Standard Actions for how to use action types provided by the framework and Custom Action Types for how to create your own types.

Regards,
Natalia

It warns for Create action as well. And other Actions are extension of CreateAction.