Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emf-dev] [EMF Forms] Loading Model problem

Please use the forum to ask question.   The EMF Forms project uses the EMFT forum.  Note there there is not enough information about what you're doing to guess at the problem.  If you have an exception, there's a stack trace.  Include that in your forum post. 

On 18/01/2017 7:14 PM, Javier Alfonso wrote:
The problem: I created my user interface successfully, using the default viewers, i created my objects, edited them and persisted them using XMI, everything ok, the problem begins when i load the saved model, it is rendered ok, i can see everything, but when i try to add new elements or try to edit the existent, i get a null pointer exception, it is like the view doesn't know how to edit or create new objects.
My load and save XMI code is based on Vogellas tutorial, maybe the problem is in the way i assign the loaded objects to the rendered object?
The code i'm using is:
C c = null;
c = (C) resource.getContents().get(0);
and then i render c using the SWT renderer.

The difference to a non saved object is that i use the factory.create method

Any suggestions?

emf-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top