public Tool[] getTools() { ArrayList<Tool> result = new ArrayList<Tool>(); for (ToolsGroup group : mySchemesManager.getAllSchemes()) { result.addAll(group.getElements()); } return result.toArray(new Tool[result.size()]); }
public ToolsGroup[] getGroups() { Collection<ToolsGroup> groups = mySchemesManager.getAllSchemes(); return groups.toArray(new ToolsGroup[groups.size()]); }