Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » change the container of model
change the container of model [message #226308] Thu, 09 November 2006 08:18 Go to next message
Eclipse UserFriend
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 Go to previous message
Nhu Le is currently offline Nhu LeFriend
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
>
>
Previous Topic:change BackgroundColor dynamically
Next Topic:Fill an oval with a gradient
Goto Forum:
  


Current Time: Thu Oct 28 18:51:17 GMT 2021

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

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

Back to the top