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

Do not expand same class twice in (quick) type hierarchy #1932

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fedejeanne
Copy link
Contributor

What it does

Fixes #1830

Requires

How to test

Expand an interface from here:

class ReproducerRedundantTypeHierarchy {

	interface I0 {}
	interface I1 extends I0 {}
	interface I2 extends I1, I0 {}
	interface I3 extends I2, I1 {}
	interface I4 extends I3, I2 {}
	interface I5 extends I4, I3 {}
	interface I6 extends I5, I4 {}
}

The (Quick) Type Hierarchy should not expand the same interface twice

image


image

Author checklist

@fedejeanne
Copy link
Contributor Author

The compilation fails because eclipse-platform/eclipse.platform.ui#2692 is not merged

@jukzi jukzi added the performance Issues related to performance. label Jan 14, 2025
@@ -137,6 +137,14 @@
</message_arguments>
</filter>
</resource>
<resource path="ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyInformationControl.java" type="org.eclipse.jdt.internal.ui.typehierarchy.HierarchyInformationControl">
Copy link
Contributor

Choose a reason for hiding this comment

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

is that (still) needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, because of the (anonymous) subclass of TreeViewer in HierarchyInformationControl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Issues related to performance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow (Quick-)Type hierarchy for large trees.
2 participants