1 11 12 package org.eclipse.ui.activities; 13 14 26 public final class ActivityEvent { 27 private IActivity activity; 28 29 private boolean activityRequirementBindingsChanged; 30 31 private boolean activityPatternBindingsChanged; 32 33 private boolean definedChanged; 34 35 private boolean enabledChanged; 36 37 private boolean defaultEnabledChanged; 38 39 private boolean nameChanged; 40 41 private boolean descriptionChanged; 42 43 64 public ActivityEvent(IActivity activity, 65 boolean activityRequirementBindingsChanged, 66 boolean activityPatternBindingsChanged, boolean definedChanged, 67 boolean descriptionChanged, boolean enabledChanged, 68 boolean nameChanged) { 69 70 this(activity, 71 activityRequirementBindingsChanged, 72 activityPatternBindingsChanged, 73 definedChanged, 74 descriptionChanged, 75 enabledChanged, 76 nameChanged, 77 false); 78 } 79 80 101 public ActivityEvent(IActivity activity, 102 boolean activityRequirementBindingsChanged, 103 boolean activityPatternBindingsChanged, boolean definedChanged, 104 boolean descriptionChanged, boolean enabledChanged, 105 boolean nameChanged, 106 boolean defaultEnabledChanged) { 107 if (activity == null) { 108 throw new NullPointerException (); 109 } 110 111 this.activity = activity; 112 this.activityRequirementBindingsChanged = activityRequirementBindingsChanged; 113 this.activityPatternBindingsChanged = activityPatternBindingsChanged; 114 this.definedChanged = definedChanged; 115 this.enabledChanged = enabledChanged; 116 this.nameChanged = nameChanged; 117 this.descriptionChanged = descriptionChanged; 118 this.defaultEnabledChanged = defaultEnabledChanged; 119 } 120 121 122 128 public IActivity getActivity() { 129 return activity; 130 } 131 132 137 public boolean hasDefinedChanged() { 138 return definedChanged; 139 } 140 141 146 public boolean hasEnabledChanged() { 147 return enabledChanged; 148 } 149 150 156 public boolean hasDefaultEnabledChanged() { 157 return defaultEnabledChanged; 158 } 159 160 165 public boolean hasNameChanged() { 166 return nameChanged; 167 } 168 169 174 public boolean hasDescriptionChanged() { 175 return descriptionChanged; 176 } 177 178 183 public boolean haveActivityRequirementBindingsChanged() { 184 return activityRequirementBindingsChanged; 185 } 186 187 192 public boolean haveActivityPatternBindingsChanged() { 193 return activityPatternBindingsChanged; 194 } 195 } 196 | Popular Tags |