Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » NonResizableEditPolicy
NonResizableEditPolicy [message #211320] Thu, 09 March 2006 17:29 Go to next message
Eclipse UserFriend
Originally posted by: greg.gigon.tugulu.com

Hello there,
Correct me if I'm wrong but is this policy used when there need to drag an element but NOT TO RESIZE?

I've tried to install this policy but I stil have the resize handles :/

Do I have to do something more?

Greg
Re: NonResizableEditPolicy [message #211327 is a reply to message #211320] Thu, 09 March 2006 17:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gmittendorferREMOVETHISTEXT.web.de

Greg wrote:
> Hello there,
> Correct me if I'm wrong but is this policy used when there need to drag
> an element but NOT TO RESIZE?
>
> I've tried to install this policy but I stil have the resize handles :/
>
> Do I have to do something more?
>
> Greg

Hi, try to override createChildEditPolicy in the parents layout edit policy:

@Override
protected EditPolicy createChildEditPolicy(EditPart child) {
return new NonResizableEditPolicy();
}

Reagards, Georg
Re: NonResizableEditPolicy [message #211400 is a reply to message #211327] Fri, 10 March 2006 10:36 Go to previous message
Eclipse UserFriend
Originally posted by: greg.gigon.tugulu.com

Thanks Georg
That worked fine :)

Cheers, Greg


Georg Mittendorfer wrote:
> Greg wrote:
>
>> Hello there,
>> Correct me if I'm wrong but is this policy used when there need to
>> drag an element but NOT TO RESIZE?
>>
>> I've tried to install this policy but I stil have the resize handles :/
>>
>> Do I have to do something more?
>>
>> Greg
>
>
> Hi, try to override createChildEditPolicy in the parents layout edit
> policy:
>
> @Override
> protected EditPolicy createChildEditPolicy(EditPart child) {
> return new NonResizableEditPolicy();
> }
>
> Reagards, Georg
Previous Topic:EditPart - Composite wrapper
Next Topic:New to GEF need help
Goto Forum:
  


Current Time: Wed Feb 05 16:54:23 GMT 2025

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

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

Back to the top