Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Overriding ArrangeAction enablement computation
Overriding ArrangeAction enablement computation [message #215880] Tue, 20 January 2009 13:52
Eclipse UserFriend
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
Previous Topic:How to use OCL to avoid add two start/end nodes?
Next Topic:TreeRouter
Goto Forum:
  


Current Time: Sat Apr 27 04:52:13 GMT 2024

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

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

Back to the top