Exemple #1
0
 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()]);
 }
Exemple #2
0
 public ToolsGroup[] getGroups() {
   Collection<ToolsGroup> groups = mySchemesManager.getAllSchemes();
   return groups.toArray(new ToolsGroup[groups.size()]);
 }