FURCAS-dev/FURCAS — Issue #127: Using wizard to create a FURCAS project and a new metamodel
Author: SebastianSchlag
Created: 2011-12-07 08:30:42+00:00
State: open
Labels: Crash, Editor

Using the wizard one can create a FURCAS project based on a new metalmodel that also will be created by the wizard. If you do so and try to open a model based on that project/metamodel, the texteditor will crash with a:

`java.lang.NullPointerException at com.sap.furcas.ide.editor.document.ModelEditorInputLoader.findElementWithinResource(ModelEditorInputLoader.java:110)
at com.sap.furcas.ide.editor.document.ModelEditorInputLoader.loadEditorInput(ModelEditorInputLoader.java:83)`

A workaround that seems to work at the moment is the following:
- Create the FURCAS and metamodel projects using the wizard.
- Add an additional attribute to the metamodel class , which has been generated by the wizard (e.g. name:ESTRING).
- Generate All via genmodel.
- Update tcs file to use this ne attribute and built the furcas project (Building the project will result in an error because the changes are not yet loaded as registered metamodel).
- Import projects in dev workbench.
- Open up the runtime workbench again and built the furcas project (The error will now disappear, since the registered metamodel now contains the attribute.)
- Now the editor should work, if you create a new model instance.

I'll try to investigate further and resolve this issue.