Made addSources and addExternalAnnotationsRoot method private in JetCoreEnvironment.
This commit is contained in:
@@ -102,14 +102,14 @@ public class JetCoreEnvironment extends JavaCoreEnvironment {
|
|||||||
return configuration;
|
return configuration;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addExternalAnnotationsRoot(VirtualFile root) {
|
|
||||||
annotationsProvider.addExternalAnnotationsRoot(root);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MockApplication getApplication() {
|
public MockApplication getApplication() {
|
||||||
return myApplication;
|
return myApplication;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void addExternalAnnotationsRoot(VirtualFile root) {
|
||||||
|
annotationsProvider.addExternalAnnotationsRoot(root);
|
||||||
|
}
|
||||||
|
|
||||||
private void addSources(File file) {
|
private void addSources(File file) {
|
||||||
if (file.isDirectory()) {
|
if (file.isDirectory()) {
|
||||||
File[] files = file.listFiles();
|
File[] files = file.listFiles();
|
||||||
@@ -130,23 +130,7 @@ public class JetCoreEnvironment extends JavaCoreEnvironment {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addSources(VirtualFile vFile) {
|
private void addSources(String path) {
|
||||||
if (vFile.isDirectory()) {
|
|
||||||
for (VirtualFile virtualFile : vFile.getChildren()) {
|
|
||||||
addSources(virtualFile);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if (vFile.getFileType() == JetFileType.INSTANCE) {
|
|
||||||
PsiFile psiFile = PsiManager.getInstance(getProject()).findFile(vFile);
|
|
||||||
if (psiFile instanceof JetFile) {
|
|
||||||
sourceFiles.add((JetFile) psiFile);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void addSources(String path) {
|
|
||||||
if (path == null) {
|
if (path == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user