1 11 12 package org.eclipse.ui.commands; 13 14 26 public final class CategoryEvent { 27 28 31 private final ICategory category; 32 33 36 private final boolean definedChanged; 37 38 41 private final boolean nameChanged; 42 43 53 public CategoryEvent(ICategory category, boolean definedChanged, 54 boolean nameChanged) { 55 if (category == null) { 56 throw new NullPointerException (); 57 } 58 59 this.category = category; 60 this.definedChanged = definedChanged; 61 this.nameChanged = nameChanged; 62 } 63 64 70 public ICategory getCategory() { 71 return category; 72 } 73 74 79 public boolean hasDefinedChanged() { 80 return definedChanged; 81 } 82 83 88 public boolean hasNameChanged() { 89 return nameChanged; 90 } 91 } 92 | Popular Tags |