]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/ConstantImagerFactory.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.swt / src / org / simantics / browsing / ui / swt / ConstantImagerFactory.java
index 7b6dab50344924f98f85ae00f670a666ba05d82f..771a98b182f80130cfb3264ec060b30e9798b53f 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.browsing.ui.swt;\r
-\r
-import java.util.Map;\r
-\r
-import org.eclipse.jface.resource.ImageDescriptor;\r
-import org.simantics.browsing.ui.BuiltinKeys.ImagerKey;\r
-import org.simantics.browsing.ui.NodeContext;\r
-import org.simantics.browsing.ui.PrimitiveQueryUpdater;\r
-import org.simantics.browsing.ui.common.imagers.ContainerImager;\r
-import org.simantics.browsing.ui.content.Imager;\r
-import org.simantics.browsing.ui.content.ImagerFactory;\r
-\r
-/**\r
- * A basic {@link ImagerFactory} that provides a constant set of images. The\r
- * images are keyed by columns. This factory never updates images.\r
- * \r
- * @author Tuukka Lehtonen\r
- */\r
-public class ConstantImagerFactory implements ImagerFactory {\r
-\r
-    private final Imager imager;\r
-\r
-    public ConstantImagerFactory(Map<String, ImageDescriptor> constants) {\r
-        this.imager = new ContainerImager<ImageDescriptor>(constants);\r
-    }\r
-\r
-    public ConstantImagerFactory(Imager imager) {\r
-        this.imager = imager;\r
-    }\r
-\r
-    @Override\r
-    public Imager create(final PrimitiveQueryUpdater updater, final NodeContext context, final ImagerKey key) {\r
-        return imager;\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.swt;
+
+import java.util.Map;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.simantics.browsing.ui.BuiltinKeys.ImagerKey;
+import org.simantics.browsing.ui.NodeContext;
+import org.simantics.browsing.ui.PrimitiveQueryUpdater;
+import org.simantics.browsing.ui.common.imagers.ContainerImager;
+import org.simantics.browsing.ui.content.Imager;
+import org.simantics.browsing.ui.content.ImagerFactory;
+
+/**
+ * A basic {@link ImagerFactory} that provides a constant set of images. The
+ * images are keyed by columns. This factory never updates images.
+ * 
+ * @author Tuukka Lehtonen
+ */
+public class ConstantImagerFactory implements ImagerFactory {
+
+    private final Imager imager;
+
+    public ConstantImagerFactory(Map<String, ImageDescriptor> constants) {
+        this.imager = new ContainerImager<ImageDescriptor>(constants);
+    }
+
+    public ConstantImagerFactory(Imager imager) {
+        this.imager = imager;
+    }
+
+    @Override
+    public Imager create(final PrimitiveQueryUpdater updater, final NodeContext context, final ImagerKey key) {
+        return imager;
+    }
+
+}