Overriding ArrangeAction enablement computation [message #215880] |
Tue, 20 January 2009 13:52 |
Eclipse User |
|
|
|
Originally posted by: romain.raugi.gmail.com
Hello,
Today, the Arrange Selection behaviour is invokable only if there are at
least two nodes or a compartment selected. I want to make it callable
when there is only ONE node selected because it makes also sense in the
frame of other layout algorithms. But this is hard coded in the
ArrangeAll calculatedEnabled() method and since it is not possible to
override standard part actions (see 111221, any update on it?), I have
no control on this.
//arrange selection
if (operationSet.size() >= 2) {
....
I think it makes sense to let the user control the enablement of this
action since he has the ability to use other algorithms though the
layout provider.
I've reported Bug 261636 for this.
Thanks,
Romain RAUGI
|
|
|
Powered by
FUDForum. Page generated in 0.02830 seconds