sorry to keep bothering you, i posted a new question at https://www.eclipse.org/forums/index.php/m/1752818/#msg_1752818 the problem is that i create an editing domain to load an work with my model, but it seems that in some scenarios, emfforms is creating a new editingdomain after rendering a component, resulting in consistency problems, any suggestions?
2017-01-18 11:33 GMT-05:00 Ed Merks <[email protected]>: > 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 [email protected] > To change your delivery options, retrieve your password, or unsubscribe from > this list, visithttps://dev.eclipse.org/mailman/listinfo/emf-dev > > > > _______________________________________________ > emf-dev mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/emf-dev >
_______________________________________________ emf-dev mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/emf-dev
