This commit is contained in:
JohnHake 2020-02-18 11:10:36 -08:00
parent 64c608aee1
commit f733fd7823
3 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,3 @@
// Copyright 2000-2020. JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.intellij.sdk.project.model;
import com.intellij.openapi.actionSystem.*;
@ -54,10 +52,14 @@ public class LibrariesAction extends AnAction {
}
}
}
String fileAndLibs;
if (jars.length() > 0) {
Messages.showInfoMessage("Libraries for file " + virtualFile.getName() + ": " + jars.toString(),
"Libraries Info");
fileAndLibs = virtualFile.getName() + ": " + jars.toString();
} else {
fileAndLibs = "None";
}
Messages.showInfoMessage("Libraries for file: " + fileAndLibs,
"Libraries Info");
}
}
}

View File

@ -45,8 +45,8 @@ public class ProjectFileIndexSampleAction extends AnAction {
Messages.showInfoMessage("Module: " + moduleName + "\n" +
"Module content root: " + moduleContentRoot + "\n" +
"Is library file: " + isLibraryFile + "\n" +
"Is in library classes" + isInLibraryClasses +
"Is in library source" + isInLibrarySource,
"Is in library classes: " + isInLibraryClasses +
", Is in library source: " + isInLibrarySource,
"Main File Info for" + virtualFile.getName());
}
}

View File

@ -23,7 +23,7 @@ public class ShowSourceRootsActions extends AnAction {
for (VirtualFile file : vFiles) {
sourceRootsList.append(file.getUrl()).append("\n");
}
Messages.showInfoMessage("Source roots for the " + projectName + " plugin:\n" + sourceRootsList,
Messages.showInfoMessage("Source roots for the " + projectName + " plugin:\n" + sourceRootsList.toString(),
"Project Properties");
}