How to use NonResizableEditPolicy? [message #187540] |
Wed, 13 July 2005 13:31 |
Eclipse User |
|
|
|
Originally posted by: wiesej.upb.de
Hello.
I want to make a figure to be not resizeable. I found the EditPolicy
NonResizableEditPolicy. I tried to install this Policy for the
corresponding EditPart via:
protected void createEditPolicies() {
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new
StartNodeNonResizableEditPolicy());
}
I tried other Roles like GRAPHICAL_NODE_ROLE but this also
didn't work...
Thanks in advance.
Jörg Wiese
|
|
|
Re: How to use NonResizableEditPolicy? [message #187548 is a reply to message #187540] |
Wed, 13 July 2005 14:18 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Sometimes the LayoutEditPolicy adds that role to the child. Maybe it is
getting overwritten?
"Wiese" <wiesej@upb.de> wrote in message
news:db353r$bp6$1@news.eclipse.org...
> Hello.
>
> I want to make a figure to be not resizeable. I found the EditPolicy
> NonResizableEditPolicy. I tried to install this Policy for the
> corresponding EditPart via:
> protected void createEditPolicies() {
> installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new
> StartNodeNonResizableEditPolicy());
> }
>
> I tried other Roles like GRAPHICAL_NODE_ROLE but this also
> didn't work...
>
> Thanks in advance.
> J
|
|
|
|
Powered by
FUDForum. Page generated in 0.03907 seconds