]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/events/adapter/AWTFocusAdapter.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scenegraph / src / org / simantics / scenegraph / g2d / events / adapter / AWTFocusAdapter.java
index f823cf6919bcf50e1793d10e0b583b95fa22a44c..18a0d47942a423b81d79e58299057cdbfcc76451 100644 (file)
@@ -1,47 +1,47 @@
-/*******************************************************************************\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
-package org.simantics.scenegraph.g2d.events.adapter;\r
-\r
-import java.awt.event.FocusEvent;\r
-import java.awt.event.FocusListener;\r
-\r
-import org.simantics.scenegraph.g2d.events.IEventHandler;\r
-import org.simantics.scenegraph.g2d.events.IEventQueue;\r
-import org.simantics.scenegraph.g2d.events.FocusEvent.FocusGainedEvent;\r
-import org.simantics.scenegraph.g2d.events.FocusEvent.FocusLostEvent;\r
-\r
-/**\r
- * Adapts AWT focus event to G2D event\r
- * \r
- * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
- */\r
-public class AWTFocusAdapter extends AbstractEventAdapter implements FocusListener {\r
-\r
-    public AWTFocusAdapter(Object sender, IEventHandler delegator) {\r
-        super(sender, delegator);\r
-    }\r
-\r
-    public AWTFocusAdapter(Object sender, IEventQueue queue) {\r
-        super(sender, queue);\r
-    }\r
-\r
-    @Override\r
-    public void focusGained(FocusEvent e) {\r
-        handleEvent(new FocusGainedEvent(sender, System.currentTimeMillis()));\r
-    }\r
-\r
-    @Override\r
-    public void focusLost(FocusEvent e) {\r
-        handleEvent(new FocusLostEvent(sender, System.currentTimeMillis()));\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
+ *******************************************************************************/
+package org.simantics.scenegraph.g2d.events.adapter;
+
+import java.awt.event.FocusEvent;
+import java.awt.event.FocusListener;
+
+import org.simantics.scenegraph.g2d.events.IEventHandler;
+import org.simantics.scenegraph.g2d.events.IEventQueue;
+import org.simantics.scenegraph.g2d.events.FocusEvent.FocusGainedEvent;
+import org.simantics.scenegraph.g2d.events.FocusEvent.FocusLostEvent;
+
+/**
+ * Adapts AWT focus event to G2D event
+ * 
+ * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
+ */
+public class AWTFocusAdapter extends AbstractEventAdapter implements FocusListener {
+
+    public AWTFocusAdapter(Object sender, IEventHandler delegator) {
+        super(sender, delegator);
+    }
+
+    public AWTFocusAdapter(Object sender, IEventQueue queue) {
+        super(sender, queue);
+    }
+
+    @Override
+    public void focusGained(FocusEvent e) {
+        handleEvent(new FocusGainedEvent(sender, System.currentTimeMillis()));
+    }
+
+    @Override
+    public void focusLost(FocusEvent e) {
+        handleEvent(new FocusLostEvent(sender, System.currentTimeMillis()));
+    }
+
+}