1 17 package org.eclipse.emf.common.notify.impl; 18 19 20 import org.eclipse.emf.common.util.BasicEList; 21 import org.eclipse.emf.common.util.EList; 22 23 26 public class NotifierImpl extends BasicNotifierImpl 27 { 28 31 protected static final int EDELIVER = 0x0001; 32 33 36 protected static final int ELAST_NOTIFIER_FLAG = EDELIVER; 37 38 42 protected int eFlags = EDELIVER; 43 44 47 protected BasicEList eAdapters; 48 49 52 public NotifierImpl() 53 { 54 } 55 56 59 public EList eAdapters() 60 { 61 if (eAdapters == null) 62 { 63 eAdapters = new EAdapterList(this); 64 } 65 return eAdapters; 66 } 67 68 protected BasicEList eBasicAdapters() 69 { 70 return eAdapters; 71 } 72 73 76 public boolean eDeliver() 77 { 78 return (eFlags & EDELIVER) != 0; 79 } 80 81 84 public void eSetDeliver(boolean deliver) 85 { 86 if (deliver) 87 { 88 this.eFlags |= EDELIVER; 89 } 90 else 91 { 92 this.eFlags &= ~EDELIVER; 93 } 94 } 95 } 96 | Popular Tags |