change the container of model [message #226308] |
Thu, 09 November 2006 08:18 |
Eclipse User |
|
|
|
Originally posted by: jdenght.gmail.com
Hi,everybody:
I want to change model's container,some models can drop to some
containers,but some models can't,how can i control the drop of model.
eg,in logic example,I can drop a Gate into Circuit,but I don't want to drop
it into LogicFlowContainer,how can i do?
Thanks!
Jdenght
|
|
|
Re: change the container of model [message #226399 is a reply to message #226308] |
Fri, 10 November 2006 14:30 |
Nhu Le Messages: 47 Registered: July 2009 |
Member |
|
|
In your editpolicy, before creating the command the return, you should
check if the operation is allowed. If it is not, just return null.
Nhu Le.
jdenght wrote:
> Hi,everybody:
> I want to change model's container,some models can drop to some
> containers,but some models can't,how can i control the drop of model.
>
> eg,in logic example,I can drop a Gate into Circuit,but I don't want to drop
> it into LogicFlowContainer,how can i do?
>
> Thanks!
>
> Jdenght
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03051 seconds