Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Removing old PE Decorators from diagram(old decorators are not deleted on performing automatic layout)
Removing old PE Decorators from diagram [message #1061657] Mon, 03 June 2013 12:13 Go to next message
Jayant Gupta is currently offline Jayant GuptaFriend
Messages: 10
Registered: March 2012
Junior Member
Hi,

I have a Graphiti diagram editor in which we have integrated the KIELER framework for automatic layout. There are decorators attached to various Pictogram Elements in the diagram. The decorators are rendered fine when the shapes(PE) are moves manually. But, when we apply layouting algorithms, the old decorators still remain in the editor and do not leave the editor until the whole diagram is deleted (the new ones are rendered correctly).

Here are the screenshots showing the scenario :-
Before Performing Layout:index.php/fa/15134/0/
After Performing Layout:index.php/fa/15135/0/

I have tried refreshing the diagram editor after performing layout but the old decorators still remain.

What might be the reason for such a behavior?
Is there a way to explicitly delete all the decorators present inside the diagram? (doing this just before the layout will solve the issue).

Thanks and Regards,
Jayant
Re: Removing old PE Decorators from diagram [message #1061843 is a reply to message #1061657] Tue, 04 June 2013 10:35 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Jayant,

this sounds strange. How do you set the new locations after the call to the
Kieler layouting?

FWIW: there is a method refreshRenderingDecorators just besides the refresh
method, but that refresh should also be triggered from the refresh method
you tried to call.

Michael
Previous Topic:Spray: Cannot Satisfy Dependency
Next Topic:Graphiti as RCP
Goto Forum:
  


Current Time: Thu Apr 25 02:31:04 GMT 2024

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

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

Back to the top