feat(UI): Make inheritance graphs display both super and subclass relations - #2935
Open
tim21-f0 wants to merge 1 commit into
Open
feat(UI): Make inheritance graphs display both super and subclass relations#2935tim21-f0 wants to merge 1 commit into
tim21-f0 wants to merge 1 commit into
Conversation
tim21-f0
marked this pull request as ready for review
August 11, 2026 11:13
tim21-f0
force-pushed
the
inheritance-graphs-update
branch
from
August 11, 2026 12:30
0394dc2 to
05dfdda
Compare
Author
|
Apologies - should be up to date with master now. |
tim21-f0
force-pushed
the
inheritance-graphs-update
branch
from
August 13, 2026 09:30
05dfdda to
372d673
Compare
Author
|
Force pushed again to remove any changes in the commit history to the ADB.java file - sorry for the confusion. Originally the source branch was not up to date with master so the ADB.java file erroneously showed up as being changed. |
This file contains hidden or 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
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.
This change displays both super-classes and subclasses of the selected class in inheritance diagrams whereas previously only super-classes were displayed.
In detail:
The change extends the
ClspGraphto track both aggregate supertypes and implementations, and direct parents and sub-classes. The inheritance graph now walks this cache of.parentrelationships rather than accessing.superTypeand.interfacesdirectly.This relies on the implied assumption that ClspGraph is up to date and
.superTypeand.interfacescannot change after it is created. Testing suggests that this is true.Edges are no longer labelled with
implementsorextends. Edges now go the other way - the source is the super-class and the destination is the subclass. Interfaces have dashed boarders and classes have full boarders. The current class is highlighted with a blue border.The new system loses information about whether a parent is implemented or extended so for classes that cannot be resolved to a
ClassNodeorClspClasswe can no longer tell if they are interfaces or classes.