Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.runtime/src/org/eclipse/papyrus/views/properties/runtime/propertyeditor/descriptor/RadioBoxPropertyEditorDescriptor.java')
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.runtime/src/org/eclipse/papyrus/views/properties/runtime/propertyeditor/descriptor/RadioBoxPropertyEditorDescriptor.java73
1 files changed, 73 insertions, 0 deletions
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.runtime/src/org/eclipse/papyrus/views/properties/runtime/propertyeditor/descriptor/RadioBoxPropertyEditorDescriptor.java b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.runtime/src/org/eclipse/papyrus/views/properties/runtime/propertyeditor/descriptor/RadioBoxPropertyEditorDescriptor.java
new file mode 100644
index 00000000000..50c1c3df703
--- /dev/null
+++ b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.views.properties.runtime/src/org/eclipse/papyrus/views/properties/runtime/propertyeditor/descriptor/RadioBoxPropertyEditorDescriptor.java
@@ -0,0 +1,73 @@
+/*****************************************************************************
+ * Copyright (c) 2010 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:
+ * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.views.properties.runtime.propertyeditor.descriptor;
+
+import java.util.List;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+
+/**
+ * Descriptor specific to the radio box property editor
+ */
+public class RadioBoxPropertyEditorDescriptor extends PropertyEditorDescriptor implements IBoundedValuesPropertyEditorDescriptor {
+
+ /** list of available values */
+ private List<?> values;
+
+ /**
+ * Creates a new RadioBoxPropertyEditor.RadioBoxPropertyEditorDescriptor.
+ *
+ * @param editorId
+ * the unique identifier of the editor described by this
+ * descriptor
+ * @param label
+ * the label for this property editor
+ * @param tooltipText
+ * the tooltip text for this property editor
+ */
+ public RadioBoxPropertyEditorDescriptor(String editorId, String label, String tooltipText) {
+ super(editorId, label, tooltipText);
+ }
+
+ /**
+ * Creates a new RadioBoxPropertyEditorDescriptor.
+ *
+ * @param editorId
+ * the unique identifier of the editor described by this
+ * descriptor
+ * @param label
+ * the label for this property editor
+ * @param labelPosition
+ * the label position for this property editor
+ * @param tooltipText
+ * the tooltip text for this property editor
+ * @param imageDescriptor
+ * the icon for this property editor
+ */
+ public RadioBoxPropertyEditorDescriptor(String editorId, String label, int labelPosition, String tooltipText, ImageDescriptor imageDescriptor) {
+ super(editorId, label, labelPosition, tooltipText, imageDescriptor);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setAvailableValues(List<?> values) {
+ this.values = values;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<?> getAvailableValues() {
+ return values;
+ }
+}

Back to the top