Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/items/DataTypeItems.java')
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/items/DataTypeItems.java116
1 files changed, 58 insertions, 58 deletions
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/items/DataTypeItems.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/items/DataTypeItems.java
index 3a891e2c6fe..6b5d3fcff8f 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/items/DataTypeItems.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/items/DataTypeItems.java
@@ -1,58 +1,58 @@
-/*****************************************************************************
- * Copyright (c) 2008 CEA LIST.
- *
- *
- * 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:
- * Chokri Mraidha (CEA LIST) Chokri.Mraidha@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) Patrick.Tessier@cea.fr - modification
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.properties.profile.ui.items;
-
-import java.util.List;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableItem;
-import org.eclipse.uml2.uml.Property;
-
-public class DataTypeItems {
-
- /**
- * Creates new DataType items in the property table.
- *
- * @param table
- * the table
- * @param value
- * current value of the property
- * @param property
- * currently selected property
- */
- public DataTypeItems(Table table, Property property, Object value) {
- if (property.isMultivalued()) {
- // property is multivalued
- final List propValues = (List) value;
-
- for (int i = 0; i < propValues.size(); i++) {
- // Create item in property table
- TableItem propValueItem = new TableItem(table, SWT.NONE);
- propValueItem.setText(propValues.get(i).toString());
- propValueItem.setData(propValues.get(i));
- }
-
- } else { // property is not multivalued
-
- // if the property has a value
- if (value != null) {
- TableItem propValueItem = new TableItem(table, SWT.NONE);
- propValueItem.setText(value.toString());
- }
- }
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2008 CEA LIST.
+ *
+ *
+ * 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:
+ * Chokri Mraidha (CEA LIST) Chokri.Mraidha@cea.fr - Initial API and implementation
+ * Patrick Tessier (CEA LIST) Patrick.Tessier@cea.fr - modification
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.properties.profile.ui.items;
+
+import java.util.List;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableItem;
+import org.eclipse.uml2.uml.Property;
+
+public class DataTypeItems {
+
+ /**
+ * Creates new DataType items in the property table.
+ *
+ * @param table
+ * the table
+ * @param value
+ * current value of the property
+ * @param property
+ * currently selected property
+ */
+ public DataTypeItems(Table table, Property property, Object value) {
+ if (property.isMultivalued()) {
+ // property is multivalued
+ final List propValues = (List) value;
+
+ for (int i = 0; i < propValues.size(); i++) {
+ // Create item in property table
+ TableItem propValueItem = new TableItem(table, SWT.NONE);
+ propValueItem.setText(propValues.get(i).toString());
+ propValueItem.setData(propValues.get(i));
+ }
+
+ } else { // property is not multivalued
+
+ // if the property has a value
+ if (value != null) {
+ TableItem propValueItem = new TableItem(table, SWT.NONE);
+ propValueItem.setText(value.toString());
+ }
+ }
+ }
+
+}

Back to the top