Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diagram improvements #866

Merged
merged 65 commits into from
Jun 27, 2024
Merged

Conversation

@alexanderpann alexanderpann force-pushed the bugfix/diagram_improvements branch 2 times, most recently from 228c9c6 to 46e6a73 Compare June 20, 2024 08:08
@alexanderpann alexanderpann force-pushed the bugfix/diagram_improvements branch from 3e4a071 to c5ef64f Compare June 24, 2024 08:13
…x/diagram_improvements

# Conflicts:
#	CHANGELOG.md
#	code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps
#	code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/model.mps
#	code/solutions/de.itemis.mps.extensions.changelog/models/de.itemis.mps.extensions.changelog.mps
Copy link
Collaborator

@slisson slisson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DiagramModel.myAutoRouteEdges, DiagramModel.autoRouteEdges(), DiagramModel.setAutoRouteEdges() and everything else related to edge routing can probably just be removed as it is dead code.

</node>
</node>
</node>
<node concept="3cpWs8" id="YGA9S4WPr9" role="3cqZAp">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All statements after .beginUpdate() in DiagramActionsUtil.fitSizeAll should be moved into the try block. Otherwise, it's not guaranteed that .endUpdate() is called if one of them throws an exception.

@HeikoBecker HeikoBecker self-requested a review June 27, 2024 06:36
Copy link
Collaborator

@HeikoBecker HeikoBecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have performed smoke tests and reported some bugs to @alexanderpann. The code seems good enough for now. All issues that arise once this is merged should be solved in follow-up tickets.

@alexanderpann alexanderpann merged commit c35f1b0 into maintenance/mps20222 Jun 27, 2024
1 check passed
@alexanderpann alexanderpann deleted the bugfix/diagram_improvements branch June 27, 2024 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants