1 11 12 package org.eclipse.ui.commands; 13 14 27 public final class KeyConfigurationEvent { 28 29 32 private final boolean activeChanged; 33 34 37 private final boolean definedChanged; 38 39 43 private final IKeyConfiguration keyConfiguration; 44 45 48 private final boolean nameChanged; 49 50 53 private final boolean parentIdChanged; 54 55 69 public KeyConfigurationEvent(IKeyConfiguration keyConfiguration, 70 boolean activeChanged, boolean definedChanged, boolean nameChanged, 71 boolean parentIdChanged) { 72 if (keyConfiguration == null) { 73 throw new NullPointerException (); 74 } 75 76 this.keyConfiguration = keyConfiguration; 77 this.activeChanged = activeChanged; 78 this.definedChanged = definedChanged; 79 this.nameChanged = nameChanged; 80 this.parentIdChanged = parentIdChanged; 81 } 82 83 89 public IKeyConfiguration getKeyConfiguration() { 90 return keyConfiguration; 91 } 92 93 98 public boolean hasActiveChanged() { 99 return activeChanged; 100 } 101 102 107 public boolean hasDefinedChanged() { 108 return definedChanged; 109 } 110 111 116 public boolean hasNameChanged() { 117 return nameChanged; 118 } 119 120 125 public boolean hasParentIdChanged() { 126 return parentIdChanged; 127 } 128 } 129 | Popular Tags |