]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.common/src/org/simantics/browsing/ui/common/imagers/ContainerImager.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.common / src / org / simantics / browsing / ui / common / imagers / ContainerImager.java
index 443524385f69227271717c9dc9cce1c4eab320a6..0f1595d28b68720c89a675ed4234f43fa36051cc 100644 (file)
@@ -1,67 +1,67 @@
-/*******************************************************************************\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.browsing.ui.common.imagers;\r
-\r
-import java.util.HashMap;\r
-import java.util.Map;\r
-\r
-import org.simantics.browsing.ui.content.Imager;\r
-\r
-/**\r
- * @author Antti Villberg\r
- * \r
- */\r
-public class ContainerImager<Image> implements Imager {\r
-\r
-    private final Map<String, Image> constants;\r
-\r
-    private Image                    theImage;\r
-\r
-    public ContainerImager(Map<String, Image> constants, Image image) {\r
-        this.constants = constants;\r
-        this.theImage = image;\r
-    }\r
-\r
-    public ContainerImager(Map<String, Image> constants) {\r
-       this(constants, null);\r
-    }\r
-\r
-    public ContainerImager(Image image) {\r
-       this(new HashMap<String, Image>(), image);\r
-    }\r
-\r
-    public ContainerImager() {\r
-       this(new HashMap<String, Image>(), null);\r
-    }\r
-\r
-\r
-    public void setImage(String key, Image image) {\r
-        if (key == null)\r
-            theImage = image;\r
-        else\r
-            constants.put(key, image);\r
-    }\r
-\r
-    public void setImage(Image image) {\r
-        theImage = image;\r
-    }\r
-\r
-    @SuppressWarnings("unchecked")\r
-       @Override\r
-    public Image getImage(String key) {\r
-        if (theImage != null)\r
-            return theImage;\r
-        else\r
-            return constants.get(key);\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.browsing.ui.common.imagers;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.simantics.browsing.ui.content.Imager;
+
+/**
+ * @author Antti Villberg
+ * 
+ */
+public class ContainerImager<Image> implements Imager {
+
+    private final Map<String, Image> constants;
+
+    private Image                    theImage;
+
+    public ContainerImager(Map<String, Image> constants, Image image) {
+        this.constants = constants;
+        this.theImage = image;
+    }
+
+    public ContainerImager(Map<String, Image> constants) {
+       this(constants, null);
+    }
+
+    public ContainerImager(Image image) {
+       this(new HashMap<String, Image>(), image);
+    }
+
+    public ContainerImager() {
+       this(new HashMap<String, Image>(), null);
+    }
+
+
+    public void setImage(String key, Image image) {
+        if (key == null)
+            theImage = image;
+        else
+            constants.put(key, image);
+    }
+
+    public void setImage(Image image) {
+        theImage = image;
+    }
+
+    @SuppressWarnings("unchecked")
+       @Override
+    public Image getImage(String key) {
+        if (theImage != null)
+            return theImage;
+        else
+            return constants.get(key);
+    }
+
+}