]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/participant/pointertool/AbstractMode.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / diagram / participant / pointertool / AbstractMode.java
index ea1cc26bd1c092aa7cfaa3737921563a2f970a93..cc910caf721deb493ff1dd10d04a995ea3887db7 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
-package org.simantics.g2d.diagram.participant.pointertool;\r
-\r
-import org.simantics.g2d.diagram.participant.AbstractDiagramParticipant;\r
-import org.simantics.scenegraph.g2d.events.MouseEvent;\r
-\r
-/**\r
- * @author Toni Kalajainen\r
- */\r
-public abstract class AbstractMode extends AbstractDiagramParticipant {\r
-\r
-    /**\r
-     * ID of the mouse that is used for this mode participant. In a single-mouse\r
-     * setup it will be 0, but may be > 0 in a multi-mouse setup.\r
-     */\r
-    protected int mouseId;\r
-\r
-    public AbstractMode(int mouseId) {\r
-        this.mouseId = mouseId;\r
-    }\r
-\r
-    public int getMouseId() {\r
-        return mouseId;\r
-    }\r
-\r
-    public void setMouseId(int mouseId) {\r
-        this.mouseId = mouseId;\r
-    }\r
-\r
-    protected boolean isModeMouse(MouseEvent e) {\r
-        return e.mouseId == mouseId;\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.g2d.diagram.participant.pointertool;
+
+import org.simantics.g2d.diagram.participant.AbstractDiagramParticipant;
+import org.simantics.scenegraph.g2d.events.MouseEvent;
+
+/**
+ * @author Toni Kalajainen
+ */
+public abstract class AbstractMode extends AbstractDiagramParticipant {
+
+    /**
+     * ID of the mouse that is used for this mode participant. In a single-mouse
+     * setup it will be 0, but may be > 0 in a multi-mouse setup.
+     */
+    protected int mouseId;
+
+    public AbstractMode(int mouseId) {
+        this.mouseId = mouseId;
+    }
+
+    public int getMouseId() {
+        return mouseId;
+    }
+
+    public void setMouseId(int mouseId) {
+        this.mouseId = mouseId;
+    }
+
+    protected boolean isModeMouse(MouseEvent e) {
+        return e.mouseId == mouseId;
+    }
+
+}