[dynamic plugins] PluginEnabled removed #IDEA-246104
[idea/community.git] / java / compiler / impl / src / com / intellij / packaging / impl / artifacts / InvalidArtifact.java
index e4eae8ff54009a1b2e3afcd2db65b6ad8c603351..695a7b3fd33f5d8b83488402c77a4c855578150d 100644 (file)
@@ -17,21 +17,28 @@ package com.intellij.packaging.impl.artifacts;
 
 import com.intellij.openapi.roots.ProjectModelExternalSource;
 import com.intellij.packaging.elements.PackagingElementFactory;
 
 import com.intellij.openapi.roots.ProjectModelExternalSource;
 import com.intellij.packaging.elements.PackagingElementFactory;
+import org.jetbrains.annotations.Nls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.jps.model.serialization.artifact.ArtifactState;
 
 public class InvalidArtifact extends ArtifactImpl {
   private final ArtifactState myState;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.jps.model.serialization.artifact.ArtifactState;
 
 public class InvalidArtifact extends ArtifactImpl {
   private final ArtifactState myState;
-  private final String myErrorMessage;
+  private final @Nls(capitalization = Nls.Capitalization.Sentence) String myErrorMessage;
 
 
-  public InvalidArtifact(@NotNull ArtifactState state, String errorMessage, ProjectModelExternalSource externalSource) {
-    super(state.getName(), InvalidArtifactType.getInstance(), false, PackagingElementFactory.getInstance().createArtifactRootElement(), "",
+  public InvalidArtifact(@NotNull ArtifactState state,
+                         @Nls(capitalization = Nls.Capitalization.Sentence) String errorMessage,
+                         ProjectModelExternalSource externalSource) {
+    super(state.getName(),
+          InvalidArtifactType.getInstance(),
+          false,
+          PackagingElementFactory.getInstance().createArtifactRootElement(),
+          "",
           externalSource);
     myState = state;
     myErrorMessage = errorMessage;
   }
 
           externalSource);
     myState = state;
     myErrorMessage = errorMessage;
   }
 
-  public String getErrorMessage() {
+  public @Nls(capitalization = Nls.Capitalization.Sentence) String getErrorMessage() {
     return myErrorMessage;
   }
 
     return myErrorMessage;
   }