Community
Participate
Working Groups
3.5 M4. In order to allow clients to contribute a structure diff viewer Compare should allow to extend StructureDiffViewer. Currently JDT and PDE already illegally do this. Rewriting or copying what's in StructureDiffViewer is not a good option.
Can you target this for M6 (API freeze)?
Created attachment 124157 [details] Fix v01
The latest news: PDE no longer illegally extends StructureDiffViewer, see bug 267878.
Moving to 3.7 as we missed API freeze.
Ping! I guess it's getting late again? ;-)
Couldn't JDT apply a similar fix as PDE did? I wonder what the limitations are in the current API.
I talked to Szymon: StructureDiffViewer extends DiffTreeViewer, which illegally extends TreeViewer. As long as TreeViewer is @noextend (bug 232268), it would be problematic to make StructureDiffViewer subclassable. I quickly looked at JavaStructureDiffViewer, and some of the things we do there could also be written differently, so that we just configure a plain StructureDiffViewer instance from the outside. AFAIK, we haven't tried to get rid of JavaStructureDiffViewer yet, and we currently don't know what APIs would be missing to achieve this. I'm taking this bug back to JDT/UI for now.