Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Programmaticaly changing location and size of diagram elements(Chaning location and size of a diagram element while the diagram is opend freezes the Program)
Programmaticaly changing location and size of diagram elements [message #1811181] Wed, 28 August 2019 09:11 Go to next message
Sebastian Rebmann is currently offline Sebastian RebmannFriend
Messages: 1
Registered: August 2019
Junior Member

i try to programmaticaly change the size and the location of a specific diagram element while the diagram is opened in a editor. For this i use a Recording Command and the setLayoutContraints method of nodes. Sadly if the command get executed the whole Eclipse ide freezes, it looks like a Deadlock occurs if the transaction of the changes should be commited. Does anyone got a idea how to avoid this?

For any advice i would be thankful
Re: Programmaticaly changing location and size of diagram elements [message #1814164 is a reply to message #1811181] Thu, 05 September 2019 08:03 Go to previous message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 164
Registered: October 2014
Senior Member

If you intend to make a fonctionality of your own to make some layout on you diagram elements, the best wat i see would be to add a tool in your palette and then the code would be executed in proper condition. (Just do a tool with changecontext operation that will just call a service : aql:self->DoMyJob)


Laurent Fasani - Obeo
Need training or professional services for Sirius?
Previous Topic:Customizing markers location with EMF Validation
Next Topic:Update decorators through service method
Goto Forum:

Current Time: Tue Feb 25 15:09:26 GMT 2020

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

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

Back to the top