Bug 565763 - Arrange all action on diagram opening should be control by setting from preferences
Summary: Arrange all action on diagram opening should be control by setting from prefe...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.3.2   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-02 10:49 EDT by Lakshminarayana CLA
Modified: 2020-08-02 10:49 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lakshminarayana CLA 2020-08-02 10:49:08 EDT
We are developing a product on top of Sirius.

There is a "Arrange all" action call on editor opening. Which causes rearrange elements and making editor dirty for a newly created diagram programmatically.

org.eclipse.sirius.diagram.ui.tools.internal.editor.DDiagramEditorImpl.initializeGraphicalViewer()
            final DiagramEditPart diagramEditPart = getDiagramEditPart();            if (diagramEditPart != null) {                SiriusCanonicalLayoutHandler.launchArrangeCommand(diagramEditPart);            }

I can manage it by adding an adapter for the GMF element. "SiriusLayoutDataManager.INSTANCE.getAdapterMarker()"

Still, I believe we need to control this action by some settings from preferences. How there is a setting for "Refresh on editor opening".