Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Programmatically layout a diagram
Programmatically layout a diagram [message #1717378] Sat, 12 December 2015 11:54 Go to next message
Mehmet Karaman is currently offline Mehmet KaramanFriend
Messages: 63
Registered: November 2012
Location: Berlin
Member
Hello,

i would like to run the layouting of the selected elements programmatically. I don't mean the call of the action "Arrange all" doesn't layout the diagram in a correct way. How or where i have to watch for examples?

Best regards
m.emin
Re: Programmatically layout a diagram [message #1717421 is a reply to message #1717378] Sun, 13 December 2015 12:00 Go to previous message
Mehmet Karaman is currently offline Mehmet KaramanFriend
Messages: 63
Registered: November 2012
Location: Berlin
Member
The "Layout selection" context menu is layouting the diagram, it's contained in the de.cau.cs.kieler.kiml.ui bundle. To run the layouting, the command with the ID "de.cau.cs.kieler.kiml.ui.command.layout" has to be executed.

Example:
ICommandService commandService = (ICommandService) workbench.getService(ICommandService.class);
Command command = commandService.getCommand("de.cau.cs.kieler.kiml.ui.command.layout");
command.executeWithChecks(new ExecutionEvent());

[Updated on: Sun, 13 December 2015 12:00]

Report message to a moderator

Previous Topic:Sirus 3.1 - Nodes under the container are not displayed when Horizontal stack is selected
Next Topic:Hide pin/unpin tool in palette
Goto Forum:
  


Current Time: Fri Apr 19 06:22:09 GMT 2024

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

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

Back to the top