X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Faccessor%2Fevent%2FCustomEvent.java;h=7a23fb0135ca1efc6e25ed020120ddbfa6ba2d97;hb=refs%2Fchanges%2F15%2F3015%2F1;hp=7dbbc988979b9e13d0019c209fe84a2086c5eb48;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/event/CustomEvent.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/event/CustomEvent.java index 7dbbc9889..7a23fb013 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/event/CustomEvent.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/event/CustomEvent.java @@ -1,43 +1,43 @@ -/******************************************************************************* - * 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.event; - -import org.simantics.databoard.accessor.reference.ChildReference; -import org.simantics.databoard.binding.mutable.MutableVariant; - -/** - * Custom Event - * - * @author Toni Kalajainen - */ -public class CustomEvent extends Event { - - /** Event name */ - public String name; - - /** Content Payload */ - public MutableVariant content; - - public CustomEvent(String name, MutableVariant content) { - this.name = name; - this.content = content; - } - - @Override - public Event clone(ChildReference newReference) { - CustomEvent result = new CustomEvent(name, content.clone()); - result.reference = newReference; - return result; - } - -} - +/******************************************************************************* + * 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.event; + +import org.simantics.databoard.accessor.reference.ChildReference; +import org.simantics.databoard.binding.mutable.MutableVariant; + +/** + * Custom Event + * + * @author Toni Kalajainen + */ +public class CustomEvent extends Event { + + /** Event name */ + public String name; + + /** Content Payload */ + public MutableVariant content; + + public CustomEvent(String name, MutableVariant content) { + this.name = name; + this.content = content; + } + + @Override + public Event clone(ChildReference newReference) { + CustomEvent result = new CustomEvent(name, content.clone()); + result.reference = newReference; + return result; + } + +} +