[Title] Added CommonColor class (predefined swt color value)
authorgyeongseok.seo <gyeongseok.seo@samsung.com>
Mon, 19 Mar 2012 10:58:43 +0000 (19:58 +0900)
committergyeongseok.seo <gyeongseok.seo@samsung.com>
Mon, 19 Mar 2012 10:58:43 +0000 (19:58 +0900)
[Type] Enhancement
[Module] common-eplugin
[Priority] Minor
[Jira#]
[Redmine#] 4666
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: I574224e620be723e19f4e0159fa700c2de0f090a

org.tizen.common/src/org/tizen/common/swt/CommonColor.java [new file with mode: 0644]

diff --git a/org.tizen.common/src/org/tizen/common/swt/CommonColor.java b/org.tizen.common/src/org/tizen/common/swt/CommonColor.java
new file mode 100644 (file)
index 0000000..e9e9466
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Web IDE - launch
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Gyeongseok Seo <gyeongseok.seo@samsung.com>
+ * Hyeongseok Heo <hyeongseok.heo@samsung.com>
+ * Kangho Kim <kh5325.kim@samsung.com>
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ */
+
+package org.tizen.common.swt;
+
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * Common SWT Color
+ * @author Gyeongseok Seo <gyeongseok.seo@samsung.com>
+ *
+ */
+public class CommonColor {
+       public static final Color BLACK = new Color(PlatformUI.getWorkbench().getDisplay(), 0, 0, 0);
+       public static final Color RED = new Color(PlatformUI.getWorkbench().getDisplay(), 255, 0, 0);
+       public static final Color ORANGE_RED = new Color(PlatformUI.getWorkbench().getDisplay(), 255, 69, 0);
+       public static final Color ROYAL_BLUE = new Color(PlatformUI.getWorkbench().getDisplay(), 65, 105, 225);
+       public static final Color YELLOW_GREEN = new Color(PlatformUI.getWorkbench().getDisplay(), 153, 204, 50);
+}