GithubHelp home page GithubHelp logo

Comments (5)

jonahgraham avatar jonahgraham commented on June 29, 2024 1

Your explanation is reasonable and I would happily review a patch. However I think this is yet another case of where something from CDT started out as a copy of the JDT item (i.e. JavaElementSorter -> CElementSorter) but then didn't keep up with the changes. The important change that was "missed" was the JDT change of JavaElementSorter -> JavaElementComparator in eclipse-jdt/eclipse.jdt.ui@7e0c7e7 - can/should we make the same change - i.e. CElementSorter -> CElementComparator?

from cdt.

jonahgraham avatar jonahgraham commented on June 29, 2024 1

In that case I will review #716 now and see if we can get that in for 2024-03 (CDT 11.5).

from cdt.

travkin79 avatar travkin79 commented on June 29, 2024

Thank you for the hint, @jonahgraham. You might be right. That's quite a big commit. I have to check that.

from cdt.

travkin79 avatar travkin79 commented on June 29, 2024

It seems, in eclipse-jdt/eclipse.jdt.ui@7e0c7e7 all occurrences of the obsolete JavaElementSorter (ViewSorter sub-class, ViewSorter is deprecated, too) are replaced with JavaElementComparator (ViewComparator). The main reason seems to be the removal of the org.eclipse.jface.viewers.ViewertSorter#getCollator() method from API. Since the ViewSorter subclasses ViewerComparator that seems to be just a kind of API clean-up.

Though, adopting that change in CDT likely requires quite many places to be changed. I suggest to create a separate issue / PR for that. Besides, I don't think, I could do that change shortly, since I'll be gone for one month beginning on 1. March.

from cdt.

jonahgraham avatar jonahgraham commented on June 29, 2024

Thanks @travkin79 for the fix.

If you ever have other issues with the order and have time to do the CElementSorter -> CElementComparator change that would be great. Don't bother creating an issue unless there is an end user visible problem or a plan to fix it. (That is because if we created issues for all unplanned code cleanups with no user visible effect our issue tracker would sadly overflow)

from cdt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.