mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -20,7 +20,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.EventListener;
|
||||
|
||||
/**
|
||||
* @see {@link com.intellij.openapi.editor.EditorFactory#addEditorFactoryListener(com.intellij.openapi.editor.event.EditorFactoryListener)}
|
||||
* @see {@link com.intellij.openapi.editor.EditorFactory#addEditorFactoryListener(com.intellij.openapi.editor.event.EditorFactoryListener, com.intellij.openapi.Disposable)}
|
||||
*/
|
||||
public interface EditorFactoryListener extends EventListener {
|
||||
void editorCreated(@NotNull EditorFactoryEvent event);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -492,10 +492,7 @@ public class VfsUtil extends VfsUtilCore {
|
||||
|
||||
@Nullable
|
||||
public static VirtualFile createDirectoryIfMissing(@NotNull String directoryPath) throws IOException {
|
||||
return doCreateDirectoriesIfMissing(FileUtil.toSystemIndependentName(directoryPath));
|
||||
}
|
||||
|
||||
private static VirtualFile doCreateDirectoriesIfMissing(String path) throws IOException {
|
||||
String path = FileUtil.toSystemIndependentName(directoryPath);
|
||||
final VirtualFile file = LocalFileSystem.getInstance().refreshAndFindFileByPath(path);
|
||||
if (file == null) {
|
||||
int pos = path.lastIndexOf('/');
|
||||
|
||||
@@ -242,6 +242,7 @@ public class EditorFactoryImpl extends EditorFactory implements ApplicationCompo
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void addEditorFactoryListener(@NotNull EditorFactoryListener listener) {
|
||||
myEditorFactoryEventDispatcher.addListener(listener);
|
||||
}
|
||||
@@ -252,6 +253,7 @@ public class EditorFactoryImpl extends EditorFactory implements ApplicationCompo
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void removeEditorFactoryListener(@NotNull EditorFactoryListener listener) {
|
||||
myEditorFactoryEventDispatcher.removeListener(listener);
|
||||
}
|
||||
|
||||
@@ -88,9 +88,9 @@ public class CacheUpdateRunner {
|
||||
}
|
||||
|
||||
public static void processFiles(final ProgressIndicator indicator,
|
||||
boolean processInReadAction,
|
||||
Collection<VirtualFile> files,
|
||||
Project project, Consumer<FileContent> processor) {
|
||||
boolean processInReadAction,
|
||||
Collection<VirtualFile> files,
|
||||
Project project, Consumer<FileContent> processor) {
|
||||
indicator.checkCanceled();
|
||||
final FileContentQueue queue = new FileContentQueue();
|
||||
final double total = files.size();
|
||||
@@ -139,10 +139,10 @@ public class CacheUpdateRunner {
|
||||
}
|
||||
|
||||
private static boolean processSomeFilesWhileUserIsInactive(@NotNull FileContentQueue queue,
|
||||
@NotNull Consumer<VirtualFile> progressUpdater,
|
||||
final boolean processInReadAction,
|
||||
@NotNull Project project,
|
||||
@NotNull Consumer<FileContent> fileProcessor) {
|
||||
@NotNull Consumer<VirtualFile> progressUpdater,
|
||||
final boolean processInReadAction,
|
||||
@NotNull Project project,
|
||||
@NotNull Consumer<FileContent> fileProcessor) {
|
||||
final ProgressIndicatorBase innerIndicator = new ProgressIndicatorBase() {
|
||||
@Override
|
||||
protected boolean isCancelable() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,6 +23,7 @@ import com.intellij.openapi.Forceable;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.util.io.FileUtilRt;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.*;
|
||||
@@ -33,12 +34,12 @@ public class ResizeableMappedFile implements Forceable {
|
||||
private long myLogicalSize;
|
||||
private final PagedFileStorage myStorage;
|
||||
|
||||
public ResizeableMappedFile(final File file, int initialSize, @Nullable PagedFileStorage.StorageLockContext lockContext, int pageSize,
|
||||
public ResizeableMappedFile(@NotNull File file, int initialSize, @Nullable PagedFileStorage.StorageLockContext lockContext, int pageSize,
|
||||
boolean valuesAreBufferAligned) throws IOException {
|
||||
this(file, initialSize, lockContext, pageSize, valuesAreBufferAligned, false);
|
||||
}
|
||||
|
||||
public ResizeableMappedFile(final File file,
|
||||
public ResizeableMappedFile(@NotNull File file,
|
||||
int initialSize,
|
||||
@Nullable PagedFileStorage.StorageLockContext lockContext,
|
||||
int pageSize,
|
||||
@@ -229,6 +230,7 @@ public class ResizeableMappedFile implements Forceable {
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public PagedFileStorage getPagedFileStorage() {
|
||||
return myStorage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user