Skip to main content



      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 05:11 Go to next message
Eclipse UserFriend
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 04:03 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Programmaticaly changing location and size of diagram elements [message #1833424 is a reply to message #1811181] Mon, 12 October 2020 17:06 Go to previous message
Eclipse UserFriend
Hi can you put your code please? I want to do the same please help , Thank you
Previous Topic:Reconnect Edge Tool - What is the Variable for "the previous target"?
Next Topic:Delete Edge
Goto Forum:
  


Current Time: Tue Jun 17 12:23:45 EDT 2025

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

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

Back to the top