Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Alignment not working. Its driving me nuts!
Alignment not working. Its driving me nuts! [message #212643] Tue, 28 March 2006 12:16 Go to next message
Martin Holmes is currently offline Martin HolmesFriend
Messages: 79
Registered: July 2009
Member
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 #212692 is a reply to message #212643] Tue, 28 March 2006 14:32 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
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
>
>
Re: Alignment not working. Its driving me nuts! [message #212724 is a reply to message #212692] Tue, 28 March 2006 17:24 Go to previous message
Martin Holmes is currently offline Martin HolmesFriend
Messages: 79
Registered: July 2009
Member
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
> >
> >
>
>
Previous Topic:Incomplete GEF Figures
Next Topic:ShortestPathConnectionRouter
Goto Forum:
  


Current Time: Wed Feb 05 10:57:56 GMT 2025

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

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

Back to the top