buildship icon indicating copy to clipboard operation
buildship copied to clipboard

Can't import projects from a multi module project into a working set

Open gravelld opened this issue 3 years ago • 2 comments

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

  1. Click File > Import > Existing Gradle Project > and choose the directory of the root of a multi project.
  2. Under Working sets observe if a working set is already chosen:

Screenshot_2021-05-14_11-09-28

  1. 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:

  1. Click File > Import > Existing Gradle Project > and choose the directory of the root of a multi project.
  2. Under Working sets click Add project to working sets twice (!). The Working sets is no longer greyed out.
  3. Click Select. We see:

Screenshot_2021-05-14_11-15-43

  1. Note although bliss was preselected, it isn't checked. So, check it.
  2. Observe bliss is still chosen.
  3. 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.

gravelld avatar May 14 '21 10:05 gravelld

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?

donat avatar May 21 '21 12:05 donat

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.

gravelld avatar May 26 '21 14:05 gravelld