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:Avoid shapes dragging into -ve X&Y axes
Next Topic:change BackgroundColor dynamically
Goto Forum:
  


Current Time: Sat Apr 20 09:24:54 GMT 2024

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

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

Back to the top