mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Tests should be fixed
This commit is contained in:
@@ -107,6 +107,7 @@ public abstract class BasePsiNode <Type extends PsiElement> extends ProjectViewN
|
||||
}
|
||||
|
||||
public boolean contains(VirtualFile file) {
|
||||
if (getValue() == null) return false;
|
||||
PsiFile containingFile = getValue().getContainingFile();
|
||||
return containingFile.getVirtualFile().equals(file);
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ public class VcsContextWrapper implements VcsContext {
|
||||
if (project == null) return null;
|
||||
|
||||
ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);
|
||||
|
||||
if (toolWindowManager == null) return null;
|
||||
ToolWindowEx fileViewToolWindow =(ToolWindowEx) toolWindowManager.getToolWindow(ProjectLevelVcsManager.FILE_VIEW_TOOL_WINDOW_ID);
|
||||
final JComponent component = fileViewToolWindow.getComponent();
|
||||
return ((FileViewPanel) component);
|
||||
|
||||
Reference in New Issue
Block a user