1 11 12 package org.eclipse.ui.activities; 13 14 27 public final class CategoryEvent { 28 private ICategory category; 29 30 private boolean categoryActivityBindingsChanged; 31 32 private boolean definedChanged; 33 34 private boolean nameChanged; 35 36 private boolean descriptionChanged; 37 38 52 public CategoryEvent(ICategory category, 53 boolean categoryActivityBindingsChanged, boolean definedChanged, 54 boolean descriptionChanged, boolean nameChanged) { 55 if (category == null) { 56 throw new NullPointerException (); 57 } 58 59 this.category = category; 60 this.categoryActivityBindingsChanged = categoryActivityBindingsChanged; 61 this.definedChanged = definedChanged; 62 this.nameChanged = nameChanged; 63 this.descriptionChanged = descriptionChanged; 64 } 65 66 72 public ICategory getCategory() { 73 return category; 74 } 75 76 81 public boolean hasDefinedChanged() { 82 return definedChanged; 83 } 84 85 90 public boolean hasNameChanged() { 91 return nameChanged; 92 } 93 94 99 public boolean hasDescriptionChanged() { 100 return descriptionChanged; 101 } 102 103 108 public boolean haveCategoryActivityBindingsChanged() { 109 return categoryActivityBindingsChanged; 110 } 111 } 112 | Popular Tags |