Community
Participate
Working Groups
JDT could contribute the mechanism to automatically detect and configure Java projects if those aren't already handled by more "structuring" import (Eclipse, Maven, Gradle...)
New Gerrit change created: https://git.eclipse.org/r/68710
I adapted the suggested patch to use latest version of the importer. Can this be considered for RC1?
(In reply to Mickael Istria from comment #2) > I adapted the suggested patch to use latest version of the importer. Can > this be considered for RC1? Most likely not, as we are busy working on critical fixes during RC*.
I'd like to target this for 4.6.1 as the simple use-case of importing a plain Java project (no .project, no pom.xml...) doesn't work at the moment with Neon.0. Adding this to JDT is an "invisible" change, the proposed patch changes nothing existing (just addition), is only used during import and is all internal. So as far as I understand, it can qualify for being part of 4.6.1 technically speaking. Are there some PMC permissions required for that?
The "New > Java Project" wizard already tries to detect a classpath from existing source and libraries. To see this in action, set the location on the first page to a folder that lacks a .classpath but contains Java code. The implementation is in org.eclipse.jdt.internal.ui.wizards.ClassPathDetector Would be good to reuse this detector (and add missing functionality there if necessary).
Thanks Markus. That class is pretty helpful. I updated the proposal to use this class, and added an automated test to easily detect regressions.
As EGit seems to be on the track of using the Smart Import dialog as default ( bug 494269), it would be nice to have this available before the next EGit release. Is there anything I can do to make it easier/faster for someone to review soon?
Gerrit change https://git.eclipse.org/r/68710 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=9e10067e18dfcedd1846ca0a5cc362b84b36c074
I've adjusted a few things and pushed to master. Keeping the bug open for backport for 4.6.2 once the feature got some more testing in the field.
I suggest to add this a the N&N M2.
New Gerrit change created: https://git.eclipse.org/r/80709
(In reply to Eclipse Genie from comment #11) > New Gerrit change created: https://git.eclipse.org/r/80709 This one is for 4.6.2.
@Daniel: can you please give PMC approval to merge this in maintenance branch for 4.7.2 ?
(In reply to Mickael Istria from comment #13) > @Daniel: can you please give PMC approval to merge this in maintenance > branch for 4.7.2 ? +1 for 4.6.2 (not 4.7.2).
Gerrit change https://git.eclipse.org/r/80709 was merged to [R4_6_maintenance]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=215e58f5c0d5c364361c818e5ba68ab1f453a9b1