Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » ACTION_ARRANGE_ALL: how to execute it from custom Action?
ACTION_ARRANGE_ALL: how to execute it from custom Action? [message #521635] Thu, 18 March 2010 07:03
Giovanni De Sossi is currently offline Giovanni De Sossi
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

Hi,

I need to execute an 'ARRANGE ALL' action on a diagram, called by a own custom action (essentially an Open Diagram Action); this is the code:

ArrangeAction arrangeAction = ArrangeAction.createArrangeAllAction(page);

arrangeAction.run();

but I got a NullPointerException. Maybe I'm calling and executing the Action in a wrong way?

Thanks for any help, regards

Giovanni.
Previous Topic:Question about WorkbenchWindows and Perspectives
Next Topic:Different custom presentations for different sites
Goto Forum:
  


Current Time: Thu Jul 24 13:45:29 EDT 2014

Powered by FUDForum. Page generated in 0.02436 seconds