-/*******************************************************************************\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;
+ }
+
+}