Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » ExecutionException
ExecutionException [message #559662] Fri, 17 September 2010 14:25 Go to next message
bachra04  is currently offline bachra04 Friend
Messages: 148
Registered: April 2010
Senior Member
I programmatically added sub-element to an existing model.
I also added dynamically an entry in the palette so that when I click on it I will create the element but I don't need to create the view
The elment is created successfully but I got the following exception

org.eclipse.core.commands.ExecutionException: While executing the operation, an exception occurred
...
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:failed to create a view

Is there any way to get rid of that exception ?

Thanks,
Re: ExecutionException [message #559770 is a reply to message #559662] Sat, 18 September 2010 01:42 Go to previous messageGo to next message
Fernando Herrera is currently offline Fernando HerreraFriend
Messages: 49
Registered: January 2010
Member
Put a breakpoint in your custom code and debug it with f5 all the time and you will see how the exception is throwed (probably in a compiled class of the framework). I think the issue is that gmf creates the semantic element and his view because the editpart is the controller and use both for display the figure(image) and save the data(model element). You probably are receiving that error for this reason. Regards

Fernando

[Updated on: Sat, 18 September 2010 01:45]

Report message to a moderator

Re: ExecutionException [message #559964 is a reply to message #559770] Mon, 20 September 2010 14:47 Go to previous message
bachra04  is currently offline bachra04 Friend
Messages: 148
Registered: April 2010
Senior Member
Hi Fernando,

Thank you for your response.

The exception is because I didn't associate a view with the semantic model.

Because when I drag and drop a component from the palette,

CreateViewAndElementRequest is called.

So My question is now:
Is there any way to create the element without creating the view when I drag and drop the component from the palette ?

Thanks

Previous Topic:Newbie question
Next Topic:How to create a new digram with a subset of my model's element
Goto Forum:
  


Current Time: Thu Mar 28 17:11:17 GMT 2024

Powered by FUDForum. Page generated in 0.08383 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top