]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/LifeCycle.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / element / handler / LifeCycle.java
index ec69cf29c6511dbfe131f0c1ac0d7de75703a5e7..a66121d5d3e157b5afeac8cf7caf87a7444b6b71 100644 (file)
@@ -1,79 +1,79 @@
-/*******************************************************************************\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.element.handler;\r
-\r
-import org.simantics.g2d.diagram.IDiagram;\r
-import org.simantics.g2d.element.IElement;\r
-\r
-/**\r
- * All ElementContributions that implement LifeCycle get\r
- * element create and destroy events.\r
- * \r
- * @author Toni Kalajainen\r
- * \r
- * @see Stub\r
- */\r
-public interface LifeCycle extends ElementHandler {\r
-\r
-    /**\r
-     * a new element has been spawned to the world\r
-     * @param e\r
-     */\r
-    void onElementCreated(IElement e);\r
-\r
-    /**\r
-     * Element has been destroyed from the world\r
-     * @param e\r
-     */\r
-    void onElementDestroyed(IElement e);\r
-\r
-    /**\r
-     * Element has been activated (after creation, cloning or loading)\r
-     * and added to a diagram.\r
-     * \r
-     * @param d\r
-     * @param e\r
-     */\r
-    void onElementActivated(IDiagram d, IElement e);\r
-\r
-    /**\r
-     * Element has been deactivated (disposed)\r
-     * @param d\r
-     * @param e\r
-     */\r
-    void onElementDeactivated(IDiagram d, IElement e);\r
-\r
-    /**\r
-     * A stub implementation for {@link LifeCycle} that does not do anything.\r
-     * Extend this to avoid having to implement all methods.\r
-     */\r
-    public static class Stub implements LifeCycle {\r
-        private static final long serialVersionUID = -569889719338663795L;\r
-\r
-        @Override\r
-        public void onElementActivated(IDiagram d, IElement e) {\r
-        }\r
-\r
-        @Override\r
-        public void onElementCreated(IElement e) {\r
-        }\r
-\r
-        @Override\r
-        public void onElementDeactivated(IDiagram d, IElement e) {\r
-        }\r
-\r
-        @Override\r
-        public void onElementDestroyed(IElement e) {\r
-        }\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.element.handler;
+
+import org.simantics.g2d.diagram.IDiagram;
+import org.simantics.g2d.element.IElement;
+
+/**
+ * All ElementContributions that implement LifeCycle get
+ * element create and destroy events.
+ * 
+ * @author Toni Kalajainen
+ * 
+ * @see Stub
+ */
+public interface LifeCycle extends ElementHandler {
+
+    /**
+     * a new element has been spawned to the world
+     * @param e
+     */
+    void onElementCreated(IElement e);
+
+    /**
+     * Element has been destroyed from the world
+     * @param e
+     */
+    void onElementDestroyed(IElement e);
+
+    /**
+     * Element has been activated (after creation, cloning or loading)
+     * and added to a diagram.
+     * 
+     * @param d
+     * @param e
+     */
+    void onElementActivated(IDiagram d, IElement e);
+
+    /**
+     * Element has been deactivated (disposed)
+     * @param d
+     * @param e
+     */
+    void onElementDeactivated(IDiagram d, IElement e);
+
+    /**
+     * A stub implementation for {@link LifeCycle} that does not do anything.
+     * Extend this to avoid having to implement all methods.
+     */
+    public static class Stub implements LifeCycle {
+        private static final long serialVersionUID = -569889719338663795L;
+
+        @Override
+        public void onElementActivated(IDiagram d, IElement e) {
+        }
+
+        @Override
+        public void onElementCreated(IElement e) {
+        }
+
+        @Override
+        public void onElementDeactivated(IDiagram d, IElement e) {
+        }
+
+        @Override
+        public void onElementDestroyed(IElement e) {
+        }
+    }
+
+}