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
Hi,

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
Sebastian
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: 159
Registered: October 2014
Senior Member
Hi,

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)

Regards
Laurent


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


Current Time: Mon Oct 14 22:34:05 GMT 2019

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

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

Back to the top