1 11 12 package org.eclipse.ui.contexts; 13 14 26 public final class ContextEvent { 27 28 31 private final IContext context; 32 33 36 private final boolean definedChanged; 37 38 41 private final boolean enabledChanged; 42 43 46 private final boolean nameChanged; 47 48 51 private final boolean parentIdChanged; 52 53 67 public ContextEvent(IContext context, boolean definedChanged, 68 boolean enabledChanged, boolean nameChanged, boolean parentIdChanged) { 69 if (context == null) { 70 throw new NullPointerException (); 71 } 72 73 this.context = context; 74 this.definedChanged = definedChanged; 75 this.enabledChanged = enabledChanged; 76 this.nameChanged = nameChanged; 77 this.parentIdChanged = parentIdChanged; 78 } 79 80 86 public IContext getContext() { 87 return context; 88 } 89 90 95 public boolean hasDefinedChanged() { 96 return definedChanged; 97 } 98 99 104 public boolean hasEnabledChanged() { 105 return enabledChanged; 106 } 107 108 113 public boolean hasNameChanged() { 114 return nameChanged; 115 } 116 117 122 public boolean hasParentIdChanged() { 123 return parentIdChanged; 124 } 125 } 126 | Popular Tags |