/** * Updates the list of delegates. Also updates all instances created * by ourselves. */ public synchronized void setDelegates(Collection<? extends ErrorManager> newDelegates) { delegates = new LinkedHashSet<ErrorManager>(newDelegates); for (DelegatingErrorManager dem : createdByMe) { attachNewDelegates(dem, dem.getName()); } }
/** If the name is not empty creates new instance of * DelegatingErrorManager. Adds it to createdByMe. */ public ErrorManager getInstance(String name) { if ((name == null) || ("".equals(name))) { // NOI18N return this; } DelegatingErrorManager dem = new DelegatingErrorManager(name); synchronized (this) { attachNewDelegates(dem, name); createdByMe.add(dem); } return dem; }
/** * Updates the list of delegates. Also updates all instances created * by ourselves. */ public synchronized void setDelegates(Collection<? extends ErrorManager> newDelegates) { delegates = new LinkedHashSet<ErrorManager>(newDelegates); for (DelegatingErrorManager dem : createdByMe) { attachNewDelegates(dem, dem.getName()); } }
/** If the name is not empty creates new instance of * DelegatingErrorManager. Adds it to createdByMe. */ public ErrorManager getInstance(String name) { if ((name == null) || ("".equals(name))) { // NOI18N return this; } DelegatingErrorManager dem = new DelegatingErrorManager(name); synchronized (this) { attachNewDelegates(dem, name); createdByMe.add(dem); } return dem; }
/** If the name is not empty creates new instance of * DelegatingErrorManager. Adds it to createdByMe. */ public ErrorManager getInstance(String name) { if ((name == null) || ("".equals(name))) { // NOI18N return this; } DelegatingErrorManager dem = new DelegatingErrorManager(name); synchronized (this) { attachNewDelegates(dem, name); createdByMe.add(dem); } return dem; }
/** If the name is not empty creates new instance of * DelegatingErrorManager. Adds it to createdByMe. */ public ErrorManager getInstance(String name) { if ((name == null) || ("".equals(name))) { // NOI18N return this; } DelegatingErrorManager dem = new DelegatingErrorManager(name); synchronized (this) { attachNewDelegates(dem, name); createdByMe.add(dem); } return dem; }
/** If the name is not empty creates new instance of * DelegatingErrorManager. Adds it to createdByMe. */ public ErrorManager getInstance(String name) { if ((name == null) || ("".equals(name))) { // NOI18N return this; } DelegatingErrorManager dem = new DelegatingErrorManager(name); synchronized (this) { attachNewDelegates(dem, name); createdByMe.add(dem); } return dem; }
/** * Updates the list of delegates. Also updates all instances created * by ourselves. */ public synchronized void setDelegates(Collection newDelegates) { java.util.LinkedHashSet d = new java.util.LinkedHashSet(newDelegates); delegates = d; for (Iterator i = createdByMe.iterator(); i.hasNext(); ) { DelegatingErrorManager dem = (DelegatingErrorManager)i.next(); attachNewDelegates(dem, dem.getName()); } }
/** * Updates the list of delegates. Also updates all instances created * by ourselves. */ public synchronized void setDelegates(Collection newDelegates) { java.util.LinkedHashSet d = new java.util.LinkedHashSet(newDelegates); delegates = d; for (Iterator i = createdByMe.iterator(); i.hasNext(); ) { DelegatingErrorManager dem = (DelegatingErrorManager)i.next(); attachNewDelegates(dem, dem.getName()); } }
/** * Updates the list of delegates. Also updates all instances created * by ourselves. */ public synchronized void setDelegates(Collection<? extends ErrorManager> newDelegates) { delegates = new LinkedHashSet<ErrorManager>(newDelegates); for (DelegatingErrorManager dem : createdByMe) { attachNewDelegates(dem, dem.getName()); } }
/** * Updates the list of delegates. Also updates all instances created * by ourselves. */ public synchronized void setDelegates(Collection<? extends ErrorManager> newDelegates) { delegates = new LinkedHashSet<ErrorManager>(newDelegates); for (DelegatingErrorManager dem : createdByMe) { attachNewDelegates(dem, dem.getName()); } }
/** If the name is not empty creates new instance of * DelegatingErrorManager. Adds it to createdByMe. */ public ErrorManager getInstance(String name) { if ((name == null) || ("".equals(name))) { // NOI18N return this; } DelegatingErrorManager dem = new DelegatingErrorManager(name); synchronized (this) { attachNewDelegates(dem, name); createdByMe.add(dem); } return dem; }