mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
Cleanup
This commit is contained in:
parent
64c608aee1
commit
f733fd7823
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user