Browse Source

issue #70 - disabled choice kind section until static and dynamic choice
behaviour is implemented in the transformation

Andreas Muelder 9 years ago
parent
commit
8adcc0de15

+ 11 - 5
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/propertysheets/ChoicePropertySection.java

@@ -40,6 +40,16 @@ public class ChoicePropertySection extends AbstractEditorPropertySection impleme
 	@Override
 	public void createControls(Composite parent) {
 
+		Label label;
+		// createChoiceKindViewer(parent);
+		label = getToolkit().createLabel(parent, "Transition Priority:");
+		GridDataFactory.fillDefaults().applyTo(label);
+		orderElementControl = new OrderElementControl(parent, SGraphPackage.Literals.VERTEX__OUTGOING_TRANSITIONS,
+				this);
+		GridDataFactory.fillDefaults().grab(true, false).applyTo(orderElementControl);
+	}
+
+	protected void createChoiceKindViewer(Composite parent) {
 		Label label = getToolkit().createLabel(parent, "Choice kind:");
 		GridDataFactory.fillDefaults().applyTo(label);
 		choiceKindViewer = new ComboViewer(parent);
@@ -47,16 +57,12 @@ public class ChoicePropertySection extends AbstractEditorPropertySection impleme
 		choiceKindViewer.setContentProvider(new ArrayContentProvider());
 		choiceKindViewer.setLabelProvider(new LabelProvider());
 		choiceKindViewer.setInput(ChoiceKind.values());
-		label = getToolkit().createLabel(parent, "Transition Priority:");
-		GridDataFactory.fillDefaults().applyTo(label);
-		orderElementControl = new OrderElementControl(parent, SGraphPackage.Literals.VERTEX__OUTGOING_TRANSITIONS, this);
-		GridDataFactory.fillDefaults().grab(true, false).applyTo(orderElementControl);
 	}
 
 	@Override
 	public void bindModel(EMFDataBindingContext context) {
 		orderElementControl.refreshInput();
-		bindChoiceKind(context);
+//		bindChoiceKind(context);
 	}
 
 	protected void bindChoiceKind(EMFDataBindingContext context) {