Explorar o código

Bugfix: Write semantic target if no language is bound

Andreas Mülder %!s(int64=11) %!d(string=hai) anos
pai
achega
af68b1cffb

+ 3 - 1
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/propertysheets/StatePropertySection.java

@@ -140,7 +140,9 @@ public class StatePropertySection extends AbstractTwoColumnEditorPropertySection
 				new UpdateValueStrategy() {
 					@Override
 					protected IStatus doSet(IObservableValue observableValue, Object value) {
-						if (getCompletionProposalAdapter() != null && !getCompletionProposalAdapter().isProposalPopupOpen())
+						if (getCompletionProposalAdapter() == null) {
+							return super.doSet(observableValue, value);
+						} else if (!getCompletionProposalAdapter().isProposalPopupOpen())
 							return super.doSet(observableValue, value);
 						return Status.OK_STATUS;
 					}