mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Local History change temporarily reverted
This commit is contained in:
@@ -146,13 +146,6 @@ public class IdeaGateway {
|
||||
return nf.getCachedChildren();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static Collection<VirtualFile> loadAndIterateChildren(VirtualFile f) {
|
||||
if (!(f instanceof NewVirtualFile)) return Collections.emptyList();
|
||||
NewVirtualFile nf = (NewVirtualFile)f;
|
||||
return Arrays.asList(nf.getChildren());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public RootEntry createTransientRootEntry() {
|
||||
ApplicationManager.getApplication().assertReadAccessAllowed();
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ public class LocalHistoryEventDispatcher extends VirtualFileAdapter implements V
|
||||
myVcs.created(f.getPath(), f.isDirectory());
|
||||
}
|
||||
if (f.isDirectory()) {
|
||||
for (VirtualFile each : IdeaGateway.loadAndIterateChildren(f)) {
|
||||
for (VirtualFile each : IdeaGateway.iterateDBChildren(f)) {
|
||||
createRecursively(each);
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -73,6 +73,7 @@ public class FileListeningTest extends IntegrationTestCase {
|
||||
myRoot.refresh(false, true);
|
||||
|
||||
List<Change> changes = getVcs().getChangeListInTests().getChangesInTests().get(0).getChanges();
|
||||
assertEquals(changes.toString(), 4, changes.size());
|
||||
List<String> actual = new SmartList<String>();
|
||||
for (Change each : changes) {
|
||||
actual.add(((StructuralChange)each).getPath());
|
||||
|
||||
Reference in New Issue
Block a user