|Re: CompleteOCL and Invocation and Setting Delegates [message #801500 is a reply to message #800089]
||Sat, 18 February 2012 13:49
| Filip Krikava
Registered: January 2012
Indeed, the outline is quite helpful. However, the outline as a view collapses every time an edit is made (I guess xtext has problem to parse the document because when you start editing you introduce syntactic errors). It would be great if it can then go back to the last element. Actually even better if it can be the two way link between the element under the editor caret and the highlighted element in the view.
The Quick Outline is great for small models. Unfortunately, for larger models it becomes unusable as it takes too long for it to start and even longer to filter.
When talking about, I seem to fail to find the correct workflow how to use the OCLInEcore editor (I went through the docs and I tried google for it but did not found anything relevant):
What I want is to keep a separate file .oclinecore so all the comments and formatting persists, but then what is the correct way to generate .ecore file? If I do right-click and "save as -> Ecore" it works but (let me illustrate it on the OCLInEcoreTutorial example):
1. I want to save the "Tutorial.ecore" as "Tutorial.oclinecore"
- It shows the dialog to type in the name of the file with "Tutorial.ecore" as the default name. Why not "Tutorial.oclinecore"?
- It shows a warning "The original file Tutorial.ecore" has been deleted or is not accessible. Why is that?
2. I enter "Tutorial.oclinecore"
3. It replaces the "Tutorial.ecore" editor with "Tutorial.oclinecore" (so far so good)
4. I add an invariant
5. Now I want to save it back to "Tutorial.ecore" (I guess there is no sync by default, right?) so I do again "Save as -> Ecore"
- Again the default filename is "Tutorial.oclinecore" (rather than "Tutorial.ecore") and again the warning about the file being inaccessible
6. I enter "Tutorial.ecore"
7. It asks me to overwrite the file, I click yes
8. It prompts: "The file 'OCLinEcoreTutorial/model/Tutorial.ecore' has changed on the file system. Do you want to replace the editor content with these changes?"
9. Regardless if I hit YES or NO I get an empty editor with 'ERROR' (also I get the same error even if I enter a new file)
- At this point I need to close it and reopen.
In the it works, but it is a bit tedious to do all these steps when debugging OCL.
What is the correct workflow in this case? What do I miss?
Thanks a lot!
Powered by FUDForum
. Page generated in 0.03022 seconds