1 11 12 package org.eclipse.jface.bindings; 13 14 import org.eclipse.core.commands.common.AbstractNamedHandleEvent; 15 16 26 public final class SchemeEvent extends AbstractNamedHandleEvent { 27 28 31 private static final int CHANGED_PARENT_ID = LAST_USED_BIT << 1; 32 33 36 private final Scheme scheme; 37 38 54 public SchemeEvent(Scheme scheme, boolean definedChanged, 55 boolean nameChanged, boolean descriptionChanged, 56 boolean parentIdChanged) { 57 super(definedChanged, descriptionChanged, nameChanged); 58 59 if (scheme == null) { 60 throw new NullPointerException (); 61 } 62 this.scheme = scheme; 63 64 if (parentIdChanged) { 65 changedValues |= CHANGED_PARENT_ID; 66 } 67 } 68 69 75 public final Scheme getScheme() { 76 return scheme; 77 } 78 79 84 public final boolean isParentIdChanged() { 85 return ((changedValues & CHANGED_PARENT_ID) != 0); 86 } 87 } 88 | Popular Tags |