Community
Participate
Working Groups
There should be a dedicated support for semantic error (not only parsing error) before allowing a save, using the xtext editor. An example of incorrect behavior is the following: when one removes a submachine reference on a submachineState, if ConnectionPointReferences exist, an error is shown in the editor, yet the save is performed (even in cases when user press ESC), yielding to inconsistent model. Only parsing errors seem to be taken into account in the xtext-gmf glue, see PopupXtextEditorHelper::isDocumentHasErrors
Created attachment 181939 [details] Patch for org.eclipse.xtext.gmf.glue Adapted to ignore saving when ESC is pressed, and to take into account semantic validation before saving. If validation fails, no reconciliation happens.
Created attachment 181940 [details] patch for org.eclipse.papyrus.connectionpointreference.editor.xtext.ui.patch Adapted to take into account changes of org.eclipse.xtext.gmf.glue
Created attachment 181941 [details] Patch for org.eclipse.papyrus.constraintwithvsl.editor.xtext.ui Adapted to take into account changes of org.eclipse.xtext.gmf.glue
Created attachment 181942 [details] Patch for org.eclipse.papyrus.marte.vsl Adapted to take into account changes of org.eclipse.xtext.gmf.glue
Created attachment 181944 [details] Patch for org.eclipse.papyrus.message.editor.xtext.ui Adapted to take into account changes of org.eclipse.xtext.gmf.glue
Created attachment 181945 [details] Patch for org.eclipse.papyrus.property.editor.xtext Adapted to take into account changes of org.eclipse.xtext.gmf.glue
Created attachment 181946 [details] Patch for org.eclipse.papyrus.property.editor.xtext.ui Adapted to take into account changes of org.eclipse.xtext.gmf.glue
Created attachment 181947 [details] Patch for org.eclipse.papyrus.state.editor.xtext Adapted to take into account changes of org.eclipse.xtext.gmf.glue
Created attachment 181949 [details] Patch for org.eclipse.papyrus.state.editor.xtext.ui Adapted to take into account changes of org.eclipse.xtext.gmf.glue
Created attachment 181950 [details] Patch for org.eclipse.papyrus.stereotypeapplicationwithvsl.editor.xtext Adapted to take into account changes of org.eclipse.xtext.gmf.glue
Created attachment 181954 [details] Patch for org.eclipse.papyrus.stereotypeapplicationwithvsl.editor.xtext.ui Adapted to take into account changes of org.eclipse.xtext.gmf.glue
Created attachment 181955 [details] Patch for org.eclipse.papyrus.transition.editor.xtext.ui Adapted to take into account changes of org.eclipse.xtext.gmf.glue
The patches in attachment should resolve these bugs.
Fixed with Arnaud Cuccuru patches applied