1 11 package org.eclipse.ui.views.properties; 12 13 import java.util.ArrayList ; 14 import java.util.List ; 15 16 20 class PropertySheetCategory { 21 private String categoryName; 22 23 private List entries = new ArrayList (); 24 25 private boolean shouldAutoExpand = true; 26 27 30 public PropertySheetCategory(String name) { 31 categoryName = name; 32 } 33 34 38 public void addEntry(IPropertySheetEntry entry) { 39 entries.add(entry); 40 } 41 42 45 public String getCategoryName() { 46 return categoryName; 47 } 48 49 56 public boolean getAutoExpand() { 57 return shouldAutoExpand; 58 } 59 60 64 public void setAutoExpand(boolean autoExpand) { 65 shouldAutoExpand = autoExpand; 66 } 67 68 73 public IPropertySheetEntry[] getChildEntries() { 74 return (IPropertySheetEntry[]) entries 75 .toArray(new IPropertySheetEntry[entries.size()]); 76 } 77 78 82 public void removeAllEntries() { 83 entries = new ArrayList (); 84 } 85 } 86 | Popular Tags |