tag:blogger.com,1999:blog-1646255021842169038.comments2017-08-06T19:06:15.663+02:00Dietmar Stoll's BlogDietmar Stollhttp://www.blogger.com/profile/10428546280407453804noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-1646255021842169038.post-28841973514665011902016-10-02T20:51:07.474+02:002016-10-02T20:51:07.474+02:00If only there were shortcuts that made converting ...If only there were shortcuts that made converting all languages into other languages this easy! Pretty cool that it exists for at least two of them, though.<br /><br /><a href="http://www.java-forums.org/forum.php" rel="nofollow">Adnan R</a>shortsarecomfyhttp://shortsarecomfy.livejournal.com/noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-58234386681705956982015-11-09T15:42:05.382+01:002015-11-09T15:42:05.382+01:00Thanks for the post, very nice way to avoid the de...Thanks for the post, very nice way to avoid the default of first literal. Yariv Amarhttps://www.blogger.com/profile/08898139845273191437noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-33915497871616107442015-01-09T09:00:03.564+01:002015-01-09T09:00:03.564+01:00Could you please model this in Enterprise Arcitect...Could you please model this in Enterprise Arcitect for better understanding?david kusterhttps://www.blogger.com/profile/03540346521761496417noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-46669495686191295252014-06-21T15:59:28.345+02:002014-06-21T15:59:28.345+02:00Exactly what i need to clean up the mess :-) but i...Exactly what i need to clean up the mess :-) but in the new versions of xtext you have to write it that way: <br />@ComposedChecks( validators = <br /> #[<br /> BoardTypeMatrixValidator,<br /> BoardTypeGraphValidator,<br /> BoardTypePathValidator<br /> ]<br />)To Bihttps://www.blogger.com/profile/12116651278806770677noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-92170479221728611782014-06-21T13:11:42.460+02:002014-06-21T13:11:42.460+02:00This comment has been removed by the author.To Bihttps://www.blogger.com/profile/12116651278806770677noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-18172581064968295382014-03-05T13:22:58.729+01:002014-03-05T13:22:58.729+01:00Hi Dietmar,
Thanks for your response.
Yes, I cou...Hi Dietmar,<br /><br />Thanks for your response. <br />Yes, I could have used your solution, but the model here is from different application and somehow need to handle extra value &quot;unspecified&quot; in the enum.<br /><br />Thanks,<br />RamapriyaRamapriyahttps://www.blogger.com/profile/10043375765559253611noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-5619344972216796802014-03-05T13:04:54.313+01:002014-03-05T13:04:54.313+01:00Hi Ramapriya,
If you have an existing model, the ...Hi Ramapriya,<br /><br />If you have an existing model, the easiest way is to change the default enum in the model file or add a default enum. If you have an existing Ecore model, you also don&#39;t need the &quot;rule for the generated Ecore model&quot;. I hope that helps.<br /><br />Cheers<br />--Dietmar Dietmar Stollhttps://www.blogger.com/profile/10428546280407453804noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-85219533680151903582014-03-05T13:04:22.620+01:002014-03-05T13:04:22.620+01:00This comment has been removed by the author.Dietmar Stollhttps://www.blogger.com/profile/10428546280407453804noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-66230112126644268972014-03-05T12:40:46.724+01:002014-03-05T12:40:46.724+01:00Hi Dietmar,
I get model files from some environme...Hi Dietmar,<br /><br />I get model files from some environment which uses existing enum say Visibility, used your example and tried to load model files, it fails with error - &quot;The value &#39;unspecified&#39; is invalid for enum VisibilityEnum&quot;. This occurs when the attribute &quot;visibility&quot; is not available in the model file. Do you have any idea on how to ignore grammer check when the attribute is missing or any other alternative to avoid this error ? Thanks in advance.<br /><br />RamapriyaRamapriyahttps://www.blogger.com/profile/10043375765559253611noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-5335807710026991762014-02-12T09:20:10.154+01:002014-02-12T09:20:10.154+01:00Hi Florence,
great to hear that you solved it! In...Hi Florence,<br /><br />great to hear that you solved it! In case of generated models (like here), the generator has to make a decision which enum should be the default, so it just takes the first one encountered in the grammar. <br /><br />DietmarDietmar Stollhttps://www.blogger.com/profile/10428546280407453804noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-25939435985408806302014-02-10T15:02:39.884+01:002014-02-10T15:02:39.884+01:00Good blog post. Helped me to introduce a Enum in o...Good blog post. Helped me to introduce a Enum in our DSLRobert Blusthttps://www.blogger.com/profile/01558165031161488582noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-85896399307131808752014-02-05T14:31:06.870+01:002014-02-05T14:31:06.870+01:00Hi Dietmar,
Thanks a lot for your quick answer.
...Hi Dietmar,<br /><br />Thanks a lot for your quick answer.<br /><br />While building the minimal example to reproduce my problem, I found the important difference between your example and my grammar: the definition order of VisibilityEnum and Visibility. I had defined Visibility first and VisibilityEnum second. If, like you, I define VisibilityEnum first, I obtain the wanted behavior. Do you know why this definition order has an impact ?<br /><br />Still, I have a workaround for my problem, thank you for your help !<br /><br />FlorenceFlo Plateauhttps://www.blogger.com/profile/08333331771150697472noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-2551623169150219592014-01-30T15:52:54.817+01:002014-01-30T15:52:54.817+01:00Hi Florence,
thanks for the feedback. Please send...Hi Florence,<br /><br />thanks for the feedback. Please send me your grammar/example to my e-mail under &quot;Contact&quot; so I could have a look at it.<br /><br />Cheers<br />--DietmarDietmar Stollhttps://www.blogger.com/profile/10428546280407453804noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-9344696368824965162014-01-30T15:48:04.389+01:002014-01-30T15:48:04.389+01:00Hi Dietmar,
I tried your technique to define the ...Hi Dietmar,<br /><br />I tried your technique to define the visibility of elements in my DSL. Sadly, the default visibility of MyModelElement is the first literal of the Visibility rule, not the first one of VisibilityEnum. Do you have an idea on how to proceed to get the unspecified visibility when the user hasn&#39;t specified a visibility in its source code ?<br /><br />Thanks in advance,<br />FlorenceFlo Plateauhttps://www.blogger.com/profile/08333331771150697472noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-9015474855572319112012-12-14T15:03:22.083+01:002012-12-14T15:03:22.083+01:00Thank you, Jan, for taking the time to file a bug ...Thank you, Jan, for taking the time to file a bug report!Dietmar Stollhttps://www.blogger.com/profile/10428546280407453804noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-19086570218708316722012-12-14T11:51:11.859+01:002012-12-14T11:51:11.859+01:00I experience the same formatting issue.
I filled a...I experience the same formatting issue.<br />I filled a bugreport:<br /><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=396426" rel="nofollow">https://bugs.eclipse.org/bugs/show_bug.cgi?id=396426</a><br />Bug 396426 - Incorrect formatting after Quick Fix + ISemanticModification was appliedJan Uhlirhttps://www.blogger.com/profile/04785747065158894767noreply@blogger.comtag:blogger.com,1999:blog-1646255021842169038.post-57520790046083869302011-02-21T17:31:37.868+01:002011-02-21T17:31:37.868+01:00Hi Dietmar,
I just started playing with Xtext and...Hi Dietmar,<br /><br />I just started playing with Xtext and I enjoy the Quick Fix Interface! I have a semantic modification as a quick fix to work on the model. In general it works as expected, but the indention formatting of the serialized inserted test is wrong afterwards. Actually the added serialized text has no indention.<br /><br />I also use the Sample EMF Editor to alter my model. Here the formatting is always right.<br /><br />Do you know about this issue?<br /><br />Cheers, Martinrauhfasertapetehttps://www.blogger.com/profile/07808152489762249121noreply@blogger.com