Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gmf-dev] Problem deleting node from canvas

I have set OCL constraints on nodes in a manner that if some node say X is not present on canvas then user should not be able to add Y node to canvas. In simple words Y should not be allowed to add before X.
 
So what happens now is that when I try to add Y node to canvas before adding X then nothing happens on canvas but there is exception thrown in the background saying "AssertionFailed", "ExecutionException". which I believe is coming because of constraints as this constraint is only active on canvas and not on Palette to stop user from selecting perticular node from Palette.
 
Now if I add X node to canvas it automatically add Y node. It seems it stores is some where in cache that I tried to add Y before. Now when I try to delete this node from canvas it does not get deleted and only shift location on canvas.
 
Can you tell me what should I do to delete this node from canvas. Is it because of exception that is coming because of constraints. If yes then how can I prevent this exception from occuring when I have set such constraint in mapping tool.

--
Regards
Gaurav Mehta

Back to the top