Saving a file in the OCLinEcore Editor deletes its content [message #1821578] |
Sat, 15 February 2020 22:11 |
Eclipse User |
|
|
|
Hello everyone,
I am currently running Eclipse 2019-12 with OCL Classic SDK (5.10.1.v20191209-1145) and OCL Examples and Editors SDK (6.10.0.v20191209-1145).
During my attempt to follow the OCLinEcore Tutorial, I ran into the following issue: Whenever I use the OCLinEcore Editor to edit an .ecore file, saving the file (even if it is still the version that I initially opened) removes most of the content from it. This is the only part that remains:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
Is anyone able to reproduce this issue? Or is there maybe a plugin whose absence could lead to such a behavior?
|
|
|
|
Re: Saving a file in the OCLinEcore Editor deletes its content [message #1821582 is a reply to message #1821579] |
Sun, 16 February 2020 09:57 |
Eclipse User |
|
|
|
Hi,
I was unfortunately not able to solve the issue yet. Here are the steps to reproduce the error on my platform:
- Switch to a clean, new Eclipse workspace.
- Add an Example > OCL (Object Constraint Language) Plug-ins > ECLinEcore Tutorial project to this workspace (org.eclipse.ocl.examples.project.oclinecoretutorial).
- Right click the Tutorial.ecore file to Open With > OCLinEcore Editor.
- Add a space at a random line and delete it again to mark the view as dirty (see the attached screenshot for an overview of the Eclipse window in this state). Ctrl+S to save the file.
- Open the Tutorial.ecore file using the Generic Text Editor. These are the contents of the file:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
Note that I get the same behavior if I
- create and try to edit an OCLinEcore Ecore File in another project or
- if the *.ecore file is not opened in the Ecore Editor provided by EMF in the meantime.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01846 seconds