buildship
buildship copied to clipboard
Can't import projects from a multi module project into a working set
I can import a multi module project into Eclipse just fine. By default the projects are added unassigned to a working set.
However, if I choose options in the Working sets section of the Import Gradle Project wizard, this has no effect. The projects are still imported, but they are also still unassigned to a working set.
Expected Behavior
When a working set is chosen, all of the imported projects should be within that working set once the import is complete.
Current Behavior
The projects are not assigned to a working set.
Context
This helps organise projects within an Eclipse workspace. The workaround is to do it manually afterwards, but this can be tedious.
Steps to Reproduce
- Click File > Import > Existing Gradle Project > and choose the directory of the root of a multi project.
- Under Working sets observe if a working set is already chosen:
- Click Finish.
The projects are imported, but not assigned to the bliss working set.
Note that in the screenshot above Working sets is actually greyed out. This might be a subtle indication that the working set isn't actually chosen.
So, as an alternative set of steps:
- Click File > Import > Existing Gradle Project > and choose the directory of the root of a multi project.
- Under Working sets click Add project to working sets twice (!). The Working sets is no longer greyed out.
- Click Select. We see:
- Note although bliss was preselected, it isn't checked. So, check it.
- Observe bliss is still chosen.
- Click Finish.
The projects are imported, but again not assigned to the bliss working set.
Your Environment
Gradle 6.8.3, Buildship 3.1.5, Eclipse 4.7.3a.
I did a quick check of the functionality and it seems fine on my side. However, you are using a really old Eclipse version, which might be the source of the problem. The class implementing the workbench selection in the import dialog actually extends a class (WorkingSetConfigurationWidget
) from the org.eclipse.ui.workbench
plugin.
Can you try with a more recent Eclipse version?
Thanks for the reply. Sorry - plugin dependency hell means I can't do that. I suggest you close this if the version of Eclipse isn't supported.