Giter VIP home page Giter VIP logo

Comments (7)

justinmk avatar justinmk commented on June 6, 2024

Eclipse CTRL-O shows them for the currently edited file, which is useful. But not useful in the REPL I guess.

from compliment.

alexander-yakushev avatar alexander-yakushev commented on June 6, 2024

Let's say the anonymous classes can be dropped completely, and inner classes will be shown only if $ is present in the prefix. If it is not, and inner classes are available, it will show something like:

java.util.Array
java.util.ArrayDeque
java.util.ArrayDeque$
java.util.ArrayList
java.util.ArrayList$

Seems reasonable?

from compliment.

justinmk avatar justinmk commented on June 6, 2024

Seems very reasonable.

from compliment.

bbatsov avatar bbatsov commented on June 6, 2024

Seems reasonable?

Yes, although I wouldn't show inner classes at all unless $ is part of the prefix. Meaning by default people would see:

java.util.Array
java.util.ArrayDeque
java.util.ArrayList

from compliment.

bbatsov avatar bbatsov commented on June 6, 2024

Or perhaps we should not show them at all. I check with Eclipse and Intellij and both don't show them. I don't recall ever using a nested class outside its containing class, so this also seems reasonable to me.

from compliment.

bbatsov avatar bbatsov commented on June 6, 2024

Btw, clojure-complete doesn't show those either.

from compliment.

DogLooksGood avatar DogLooksGood commented on June 6, 2024

A lot of Java libraries use inner class, (e.g. XXX.Bulider), hide these candidate all the time is not a good solution for this case.

IntelliJ and Eclipse will show inner class when type something like

XXX.B|
     |-> Builder

It will be better If completion provide inner class in this case:

(XXX$B|
      |-> XXX$Builder

or something like this.

from compliment.

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.