I have a HierarchyTabController which I call this method once on initial load of the app.
public void displayRootTreeStructure()
{
//for loops through each Requirement to display all RequirementGroups
}
The problem is, I have another controller called RequirementGroupsController which has a method the user can then add with a click of a button.
@FXML
private void addRequirementGroup()
{
}
So, in other words, if the user adds a Requirement Group and then switches to the Hierarchy Tab, it is out of date. How can I call the displayRootTreeStructure method when the user calls addRequirementGroup?