mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-118487 IDEA should suggest downloading missing plug-ins for unrecognised artifact configuration
This commit is contained in:
@@ -24,6 +24,8 @@ import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.module.ProjectLoadingErrorsNotifier;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.roots.ex.ProjectRootManagerEx;
|
||||
import com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser;
|
||||
import com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.UnknownFeaturesCollector;
|
||||
import com.intellij.openapi.util.ModificationTracker;
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.openapi.vfs.LocalFileSystem;
|
||||
@@ -241,6 +243,7 @@ public class ArtifactManagerImpl extends ArtifactManager implements ProjectCompo
|
||||
private InvalidArtifact createInvalidArtifact(ArtifactState state, String errorMessage) {
|
||||
final InvalidArtifact artifact = new InvalidArtifact(state, errorMessage);
|
||||
ProjectLoadingErrorsNotifier.getInstance(myProject).registerError(new ArtifactLoadingErrorDescription(myProject, artifact));
|
||||
UnknownFeaturesCollector.getInstance(myProject).registerUnknownFeature("com.intellij.packaging.artifacts.ArtifactType", state.getArtifactType());
|
||||
return artifact;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user