mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simplify — project.isDefault() is not fired for default project
This commit is contained in:
@@ -27,9 +27,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* @author Irina.Chernushina on 5/30/2016.
|
||||
*/
|
||||
public class JsonSchemaFileTypeManager implements ProjectManagerListener {
|
||||
private final Collection<VirtualFile> myFileSets = ContainerUtil.newConcurrentSet();
|
||||
private volatile boolean mySetsInitialized;
|
||||
|
||||
+2
-3
@@ -133,7 +133,7 @@ public abstract class DummyCachingFileSystem<T extends VirtualFile> extends Dumm
|
||||
return myCachedFiles.notNullValues();
|
||||
}
|
||||
|
||||
public void onProjectClosed(@NotNull Project project) {
|
||||
public void onProjectClosed() {
|
||||
clearCache();
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
cleanup();
|
||||
@@ -144,7 +144,6 @@ public abstract class DummyCachingFileSystem<T extends VirtualFile> extends Dumm
|
||||
clearCache();
|
||||
}
|
||||
|
||||
|
||||
private static final Key<Boolean> DISPOSE_CALLBACK = Key.create("DISPOSE_CALLBACK");
|
||||
|
||||
private void registerDisposeCallback(Project project) {
|
||||
@@ -154,7 +153,7 @@ public abstract class DummyCachingFileSystem<T extends VirtualFile> extends Dumm
|
||||
Disposer.register(project, new Disposable() {
|
||||
@Override
|
||||
public void dispose() {
|
||||
onProjectClosed(project);
|
||||
onProjectClosed();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
-1
@@ -212,7 +212,6 @@ public class PyCharmEduInitialConfigurator {
|
||||
connection.subscribe(ProjectManager.TOPIC, new ProjectManagerListener() {
|
||||
@Override
|
||||
public void projectOpened(final Project project) {
|
||||
if (project.isDefault()) return;
|
||||
if (FileChooserUtil.getLastOpenedFile(project) == null) {
|
||||
FileChooserUtil.setLastOpenedFile(project, VfsUtil.getUserHomeDir());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user