]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/EnabledImpl.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / element / handler / impl / EnabledImpl.java
index 661270ce8d8aafe55b17b26a0fa9128e1903e443..18fe6ccde0a7f566939e65c7e9555c467a110b42 100644 (file)
@@ -1,58 +1,58 @@
-/*******************************************************************************\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.impl;\r
-\r
-import org.simantics.g2d.diagram.IDiagram;\r
-import org.simantics.g2d.element.ElementHints;\r
-import org.simantics.g2d.element.IElement;\r
-import org.simantics.g2d.element.handler.Stateful;\r
-import org.simantics.g2d.element.handler.LifeCycle;\r
-\r
-/**\r
- * @author Toni Kalajainen\r
- */\r
-public class EnabledImpl implements Stateful, LifeCycle {\r
-\r
-    private static final long serialVersionUID = -9001251146906678336L;\r
-\r
-    public static final EnabledImpl ENABLED_BY_DEFAULT = new EnabledImpl();\r
-    public static final EnabledImpl DISABLED_BY_DEFAULT = new EnabledImpl();\r
-\r
-    @Override\r
-    public boolean isEnabled(IElement e) {\r
-        Boolean b = e.getHint(ElementHints.KEY_ENABLED); \r
-        return b==null ? false : b;\r
-    }\r
-\r
-    @Override\r
-    public void setEnabled(IElement e, boolean enabled) {\r
-        e.setHint(ElementHints.KEY_ENABLED, enabled);\r
-    }\r
-\r
-    @Override\r
-    public void onElementActivated(IDiagram d, IElement e) {\r
-    }\r
-\r
-    @Override\r
-    public void onElementCreated(IElement e) {\r
-        e.setHint(ElementHints.KEY_ENABLED, true);\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
+/*******************************************************************************
+ * 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.impl;
+
+import org.simantics.g2d.diagram.IDiagram;
+import org.simantics.g2d.element.ElementHints;
+import org.simantics.g2d.element.IElement;
+import org.simantics.g2d.element.handler.Stateful;
+import org.simantics.g2d.element.handler.LifeCycle;
+
+/**
+ * @author Toni Kalajainen
+ */
+public class EnabledImpl implements Stateful, LifeCycle {
+
+    private static final long serialVersionUID = -9001251146906678336L;
+
+    public static final EnabledImpl ENABLED_BY_DEFAULT = new EnabledImpl();
+    public static final EnabledImpl DISABLED_BY_DEFAULT = new EnabledImpl();
+
+    @Override
+    public boolean isEnabled(IElement e) {
+        Boolean b = e.getHint(ElementHints.KEY_ENABLED); 
+        return b==null ? false : b;
+    }
+
+    @Override
+    public void setEnabled(IElement e, boolean enabled) {
+        e.setHint(ElementHints.KEY_ENABLED, enabled);
+    }
+
+    @Override
+    public void onElementActivated(IDiagram d, IElement e) {
+    }
+
+    @Override
+    public void onElementCreated(IElement e) {
+        e.setHint(ElementHints.KEY_ENABLED, true);
+    }
+
+    @Override
+    public void onElementDeactivated(IDiagram d, IElement e) {
+    }
+
+    @Override
+    public void onElementDestroyed(IElement e) {
+    }
+
+}