]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/widgets/DefaultColorProvider.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.swt / src / org / simantics / browsing / ui / swt / widgets / DefaultColorProvider.java
index 69198cf9f3631ba7317114aa35ca3000a03fe84e..ee0132fd661d940f06a00fab4d3196d717c0cac9 100644 (file)
@@ -1,54 +1,54 @@
-/*******************************************************************************\r
- * Copyright (c) 2012 Association for Decentralized Information Management in\r
- * 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.widgets;\r
-\r
-import org.eclipse.jface.resource.ColorDescriptor;\r
-import org.eclipse.jface.resource.ResourceManager;\r
-import org.eclipse.swt.graphics.Color;\r
-import org.eclipse.swt.graphics.RGB;\r
-import org.simantics.browsing.ui.swt.widgets.impl.ITrackedColorProvider;\r
-\r
-public class DefaultColorProvider implements ITrackedColorProvider {\r
-       \r
-       private final ResourceManager resourceManager;\r
-       \r
-    private final ColorDescriptor highlightColor = ColorDescriptor.createFrom(new RGB(254, 255, 197));\r
-    private final ColorDescriptor inactiveColor = ColorDescriptor.createFrom(new RGB(245, 246, 190));\r
-    private final ColorDescriptor invalidInputColor = ColorDescriptor.createFrom(new RGB(255, 128, 128));\r
-\r
-    public DefaultColorProvider(ResourceManager resourceManager) {\r
-       this.resourceManager = resourceManager;\r
-    }\r
-    \r
-    @Override\r
-    public Color getEditingBackground() {\r
-        return null;\r
-    }\r
-\r
-    @Override\r
-    public Color getHoverBackground() {\r
-        return resourceManager.createColor(highlightColor);\r
-    }\r
-\r
-    @Override\r
-    public Color getInactiveBackground() {\r
-        return resourceManager.createColor(inactiveColor);\r
-    }\r
-\r
-    @Override\r
-    public Color getInvalidBackground() {\r
-        return resourceManager.createColor(invalidInputColor);\r
-    }\r
-\r
-}\r
-\r
-\r
+/*******************************************************************************
+ * Copyright (c) 2012 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.widgets;
+
+import org.eclipse.jface.resource.ColorDescriptor;
+import org.eclipse.jface.resource.ResourceManager;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.RGB;
+import org.simantics.browsing.ui.swt.widgets.impl.ITrackedColorProvider;
+
+public class DefaultColorProvider implements ITrackedColorProvider {
+       
+       private final ResourceManager resourceManager;
+       
+    private final ColorDescriptor highlightColor = ColorDescriptor.createFrom(new RGB(254, 255, 197));
+    private final ColorDescriptor inactiveColor = ColorDescriptor.createFrom(new RGB(245, 246, 190));
+    private final ColorDescriptor invalidInputColor = ColorDescriptor.createFrom(new RGB(255, 128, 128));
+
+    public DefaultColorProvider(ResourceManager resourceManager) {
+       this.resourceManager = resourceManager;
+    }
+    
+    @Override
+    public Color getEditingBackground() {
+        return null;
+    }
+
+    @Override
+    public Color getHoverBackground() {
+        return resourceManager.createColor(highlightColor);
+    }
+
+    @Override
+    public Color getInactiveBackground() {
+        return resourceManager.createColor(inactiveColor);
+    }
+
+    @Override
+    public Color getInvalidBackground() {
+        return resourceManager.createColor(invalidInputColor);
+    }
+
+}
+
+