-
Notifications
You must be signed in to change notification settings - Fork 11
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
[426] Improve GMFHelper.getAbsoluteBounds method #427
Open
lredor
wants to merge
17
commits into
master
Choose a base branch
from
lre/enh/426-GMFHelper
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lredor
force-pushed
the
lre/enh/426-GMFHelper
branch
4 times, most recently
from
July 31, 2024 12:37
44700cb
to
515600d
Compare
lredor
force-pushed
the
lre/enh/426-GMFHelper
branch
2 times, most recently
from
September 10, 2024 11:13
0878225
to
a383ea5
Compare
lredor
changed the title
[426] DRAFT - Improve GMFHelper.getAbsoluteBounds method
[426] Improve GMFHelper.getAbsoluteBounds method
Sep 10, 2024
Remaining TODO exist and all cases are not correctly handle. But this is a first step. All tests added in org.eclipse.sirius.tests.swtbot.layout.GMFHelperTest are OK now. |
lredor
force-pushed
the
lre/enh/426-GMFHelper
branch
2 times, most recently
from
September 12, 2024 07:31
2f15dd5
to
8a65d0e
Compare
This was referenced Sep 12, 2024
lredor
force-pushed
the
lre/enh/426-GMFHelper
branch
2 times, most recently
from
September 17, 2024 07:35
441bc92
to
add67ae
Compare
Because of typo, the border nodes are considered in org.eclipse.sirius.diagram.ui.internal.refresh.GMFHelper.getBottomRight(Node) when they should be ignored. Bug: #426
* Add method getBottomRightInsets to use it in auto-size computation * Consider shadow border * Consider border nodes when computing children bottom-right corner. Bug: #426
The code will be more logic with this refactoring and facilitate the following changes. Bug: #426
This compartment is an intermediate GMF Node and should not have the same behavior when computing auto-size: - Minimal size defined by ResizableCompartmentFigure.MIN_CLIENT_DP - No shadow border Bug: #426
Before this commit, this kind of container was not correctly handled. Bug: #426
Before this commit, this kind of container was not correctly handled. Bug: #426
Before this commit, this kind of container was not correctly handled. Bug: #426
This test was based on some wrong bounds. The edge has been slightly moved to retrieve the previous edge bendpoints number after collapse. Bug: #426
The bounds for a node can be computed several times for a parent or a child bounds calculation. This commit adds a cache to avoid computing it again. Bug: #426
Analysis: It seems that before, the code with comment "manage location of bordered node with closest side", in GMFHelper.getAbsoluteLocation, is called only in specific circumstances. Since recent changes, it was called systematically, but that shouldn't be the case. This commit also reduces the number of getAbsoluBounds methods to ease the impact analysis. Bug: #426
All classes, using methods from GMFHelper with Option as return type, have also been modified.
lredor
force-pushed
the
lre/enh/426-GMFHelper
branch
from
September 27, 2024 13:34
add67ae
to
3e2cd62
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Several points are handled in this commit. It should maybe split in several commit to facilitate reviewing...
Because of typo, the border nodes are considered in org.eclipse.sirius.diagram.ui.internal.refresh.GMFHelper.getBottomRight(Node) when they should be ignored.
Bug: #426