1 /*******************************************************************************
\r
2 * Copyright (c) 2010- Association for Decentralized Information Management in
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.databoard.accessor.event;
\r
14 import org.simantics.databoard.accessor.reference.ChildReference;
\r
15 import org.simantics.databoard.binding.mutable.MutableVariant;
\r
20 * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
\r
22 public class CustomEvent extends Event {
\r
27 /** Content Payload */
\r
28 public MutableVariant content;
\r
30 public CustomEvent(String name, MutableVariant content) {
\r
32 this.content = content;
\r
36 public Event clone(ChildReference newReference) {
\r
37 CustomEvent result = new CustomEvent(name, content.clone());
\r
38 result.reference = newReference;
\r