Alignment not working. Its driving me nuts! [message #212643] |
Tue, 28 March 2006 12:16  |
Eclipse User |
|
|
|
Hi,
I am playing with the shapes demo and trying to add Alignment.
My initial problem is that when I select two items the toolbar still remains
disabled.
The second problem is that when I right click for context menu no align menu
item is visible.
can anyone help?
thanks
Martin
|
|
|
|
Re: Alignment not working. Its driving me nuts! [message #212724 is a reply to message #212692] |
Tue, 28 March 2006 17:24  |
Eclipse User |
|
|
|
Thanks Steve you kinda helped ..
I hadn't overridden any of the align functionality
but it made me add a breakpoint on the getCommand() and found my constraint
command was the root of the problem. The canExecute() was restricting
requests. Adding RequestConstants.REQ_ALIGN_CHILDREN.equals(type) did the
trick!
One thing I have noticed thou' is that with the shape and the logic example
the align functionalty doesn't behave as expected. When I select align right
or align centre it always appears to align left. The Align top, bottom and
middle align has a similar problem!
Martin
"Steven Shaw" <steveshaw@ca.ibm.com> wrote in message
news:e0bh7e$3j9$1@utils.eclipse.org...
> The AlignmentRequest is handled by the XYLayoutEditPolicy. Make sure your
> subclass isn't overriding any inherited functionality that handles this
> request.
>
> -Steve
>
>
> "Martin Holmes" <martincanbe@hotmail.com> wrote in message
> news:e0b9n9$iug$1@utils.eclipse.org...
> > Hi,
> >
> > I am playing with the shapes demo and trying to add Alignment.
> >
> > My initial problem is that when I select two items the toolbar still
> remains
> > disabled.
> >
> > The second problem is that when I right click for context menu no align
> menu
> > item is visible.
> >
> > can anyone help?
> >
> > thanks
> >
> > Martin
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03089 seconds