X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Faccessor%2Fimpl%2FEventCollection.java;h=d08f8fd43fd9234e9d10b57c5b4034bcf42340e6;hb=04220731a0cac3fe6fe2c3375a73d698e11d476f;hp=b2a6f8d18b6b6aefd682ae15004e7a9c46e32e78;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/impl/EventCollection.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/impl/EventCollection.java index b2a6f8d18..d08f8fd43 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/impl/EventCollection.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/impl/EventCollection.java @@ -1,23 +1,23 @@ -/******************************************************************************* - * Copyright (c) 2010 Association for Decentralized Information Management in - * Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ +/******************************************************************************* + * Copyright (c) 2010 Association for Decentralized Information Management in + * Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ package org.simantics.databoard.accessor.impl; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.simantics.databoard.accessor.Accessor.Listener; -import org.simantics.databoard.accessor.event.Event; -import org.simantics.databoard.accessor.event.ModificationEvent; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import org.simantics.databoard.accessor.Accessor.Listener; +import org.simantics.databoard.accessor.event.Event; +import org.simantics.databoard.accessor.event.ModificationEvent; /** * Event Collection is a {@link Listener} implementation that collects events. @@ -29,14 +29,14 @@ public class EventCollection implements Listener { public List events = new ArrayList(); - public synchronized void addEvent(Event event) { - this.events.add(event); - } - - public synchronized void addEvents(Collection events) { - this.events.addAll(events); - } - + public synchronized void addEvent(Event event) { + this.events.add(event); + } + + public synchronized void addEvents(Collection events) { + this.events.addAll(events); + } + /** * Returns events and clears change set. *