IDEADEV-41239: Artifacts: old project conversion: libraries added to facet to package are not converted

This commit is contained in:
nik
2009-11-10 13:22:33 +03:00
parent ba23f64dc3
commit d68d03da4b
@@ -418,10 +418,10 @@ public class LayoutTreeComponent implements DnDTarget, Disposable {
public void putIntoDefaultLocations(@NotNull final List<? extends PackagingSourceItem> items) {
final List<PackagingElement<?>> toSelect = new ArrayList<PackagingElement<?>>();
final CompositePackagingElement<?> rootElement = getArtifact().getRootElement();
final ArtifactType artifactType = getArtifact().getArtifactType();
editLayout(new Runnable() {
public void run() {
final CompositePackagingElement<?> rootElement = getArtifact().getRootElement();
final ArtifactType artifactType = getArtifact().getArtifactType();
for (PackagingSourceItem item : items) {
final String path = artifactType.getDefaultPathFor(item);
if (path != null) {