Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/dialog/ColorLabelProvider.java')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/dialog/ColorLabelProvider.java120
1 files changed, 60 insertions, 60 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/dialog/ColorLabelProvider.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/dialog/ColorLabelProvider.java
index 8604051812c..68f9f20eb1b 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/dialog/ColorLabelProvider.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/dialog/ColorLabelProvider.java
@@ -1,61 +1,61 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
- */
-package org.eclipse.papyrus.emf.facet.custom.ui.internal.dialog;
-
-import org.eclipse.jface.viewers.IColorProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.ui.internal.ImageProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-
-public class ColorLabelProvider extends LabelProvider implements IColorProvider {
-
- private final LoadCustomizationsDialog loadCustomDialog;
-
- public ColorLabelProvider(final LoadCustomizationsDialog loadCustomDialog) {
- super();
- this.loadCustomDialog = loadCustomDialog;
- }
-
- @Override
- public String getText(final Object element) {
- final Customization customization = (Customization) element;
- return customization.getName();
- }
-
- @Override
- public Image getImage(final Object element) {
- Image result;
- if (this.loadCustomDialog.getLockedCustoms().contains(element)) {
- result = ImageProvider.getInstance().getGrayedUiCustomIcon();
- } else {
- result = ImageProvider.getInstance().getUiCustomIcon();
- }
- return result;
- }
-
- public Color getForeground(final Object element) {
- Color result = null;
- if (this.loadCustomDialog.getLockedCustoms().contains(element)) {
- result = Display.getDefault().getSystemColor(SWT.COLOR_DARK_GRAY);
- }
- return result;
- }
-
- public Color getBackground(final Object element) {
- return null;
- }
-
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
+ */
+package org.eclipse.papyrus.emf.facet.custom.ui.internal.dialog;
+
+import org.eclipse.jface.viewers.IColorProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.ui.internal.ImageProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+
+public class ColorLabelProvider extends LabelProvider implements IColorProvider {
+
+ private final LoadCustomizationsDialog loadCustomDialog;
+
+ public ColorLabelProvider(final LoadCustomizationsDialog loadCustomDialog) {
+ super();
+ this.loadCustomDialog = loadCustomDialog;
+ }
+
+ @Override
+ public String getText(final Object element) {
+ final Customization customization = (Customization) element;
+ return customization.getName();
+ }
+
+ @Override
+ public Image getImage(final Object element) {
+ Image result;
+ if (this.loadCustomDialog.getLockedCustoms().contains(element)) {
+ result = ImageProvider.getInstance().getGrayedUiCustomIcon();
+ } else {
+ result = ImageProvider.getInstance().getUiCustomIcon();
+ }
+ return result;
+ }
+
+ public Color getForeground(final Object element) {
+ Color result = null;
+ if (this.loadCustomDialog.getLockedCustoms().contains(element)) {
+ result = Display.getDefault().getSystemColor(SWT.COLOR_DARK_GRAY);
+ }
+ return result;
+ }
+
+ public Color getBackground(final Object element) {
+ return null;
+ }
+
} \ No newline at end of file

Back to the top