소스 검색

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

Andreas Muelder 9 년 전
부모
커밋
8adcc0de15
1개의 변경된 파일11개의 추가작업 그리고 5개의 파일을 삭제
  1. 11 5
      plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/propertysheets/ChoicePropertySection.java

+ 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) {