1 11 package org.eclipse.ui.internal.registry; 12 13 import java.util.ArrayList ; 14 15 18 public class ActionSetCategory { 19 private String id; 20 private String label; 21 private ArrayList actionSets; 22 25 public ActionSetCategory(String id, String label) { 26 super(); 27 this.id = id; 28 this.label = label; 29 } 30 33 public void addActionSet(IActionSetDescriptor desc) { 34 if (actionSets == null) 35 actionSets = new ArrayList (5); 36 actionSets.add(desc); 37 desc.setCategory(id); 38 } 39 43 public ArrayList getActionSets() { 44 return actionSets; 45 } 46 49 public String getId() { 50 return id; 51 } 52 55 public String getLabel() { 56 return label; 57 } 58 } 59 | Popular Tags |