]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.utils.thread/src/org/simantics/utils/threads/test/ExampleObject.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.utils.thread / src / org / simantics / utils / threads / test / ExampleObject.java
index 40fdedf08071249f7bff9a40dc101ef8a4279c75..a0c1d75873408d0f6ed0cc3c50f5a74077524cae 100644 (file)
@@ -1,44 +1,44 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-/*\r
- *\r
- * @author Toni Kalajainen\r
- */\r
-package org.simantics.utils.threads.test;\r
-\r
-import java.lang.reflect.Method;\r
-\r
-import org.simantics.utils.threads.IThreadWorkQueue;\r
-import org.simantics.utils.threads.SyncListenerList;\r
-\r
-\r
-public class ExampleObject {\r
-\r
-       SyncListenerList<ExampleListener> listeners = new SyncListenerList<ExampleListener>(ExampleListener.class);\r
-       \r
-       public void addListener(IThreadWorkQueue thread, ExampleListener l)\r
-       {\r
-               listeners.add(thread, l);               \r
-       }\r
-       \r
-       public void removeListener(IThreadWorkQueue thread, ExampleListener l)\r
-       {\r
-               listeners.remove(thread, l);\r
-       }\r
-       \r
-       static final Method onMessage = SyncListenerList.getMethod(ExampleListener.class, "onMessage");\r
-       public void fireMessage(String message)\r
-       {\r
-               listeners.fireEventSync(onMessage, this, message);\r
-       }\r
-       \r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 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
+ *******************************************************************************/
+/*
+ *
+ * @author Toni Kalajainen
+ */
+package org.simantics.utils.threads.test;
+
+import java.lang.reflect.Method;
+
+import org.simantics.utils.threads.IThreadWorkQueue;
+import org.simantics.utils.threads.SyncListenerList;
+
+
+public class ExampleObject {
+
+       SyncListenerList<ExampleListener> listeners = new SyncListenerList<ExampleListener>(ExampleListener.class);
+       
+       public void addListener(IThreadWorkQueue thread, ExampleListener l)
+       {
+               listeners.add(thread, l);               
+       }
+       
+       public void removeListener(IThreadWorkQueue thread, ExampleListener l)
+       {
+               listeners.remove(thread, l);
+       }
+       
+       static final Method onMessage = SyncListenerList.getMethod(ExampleListener.class, "onMessage");
+       public void fireMessage(String message)
+       {
+               listeners.fireEventSync(onMessage, this, message);
+       }
+       
+}