[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: How do i add Alignment Actions etc. ?

It could be that you have a missing editpolicies that those actions are
relying upon?

The typical way UI is enabled / disabled is by sending a request to the
current selection (EditParts) and seeing if a command is returned.  If a
command is returned, this indicates that UI can be enabled.  If a null is
returned, then the action is grayed out.  Most often, requests are handled
by the edit policies installed on an EditPart.

Hint:
- See what editpolicies installed in Logic example respond to / handle
requests for the action that you are interested in.

Regards,

Steve.

"Marcel" <marcel.au@xxxxxx> wrote in message
news:13997094.1140686274465.JavaMail.root@xxxxxxxxxxxxxxxxxxxx
> I've read through the logical example and tried to adapt the code.
> The MatchWidthAction and MatchHeightAction are working.
> But i can't activate the other actions. The are greyed
> out in the toolbar. Also the snap to the grid action
> doesn't work. Did i forget something to implement?