mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
@Nullable
This commit is contained in:
@@ -34,6 +34,7 @@ public abstract class FileDocumentManager implements SavingRequestor {
|
||||
@Nullable
|
||||
public abstract Document getCachedDocument(@NotNull VirtualFile file);
|
||||
|
||||
@Nullable
|
||||
public abstract VirtualFile getFile(@NotNull Document document);
|
||||
|
||||
public abstract void saveAllDocuments();
|
||||
|
||||
@@ -78,6 +78,7 @@ public abstract class WindowManager {
|
||||
* @param project
|
||||
* @return
|
||||
*/
|
||||
@Nullable
|
||||
public abstract StatusBar getStatusBar(Project project);
|
||||
|
||||
/**
|
||||
|
||||
+1
@@ -186,6 +186,7 @@ public class FileDocumentManagerImpl extends FileDocumentManager implements Appl
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public VirtualFile getFile(@NotNull Document document) {
|
||||
return document.getUserData(FILE_KEY);
|
||||
}
|
||||
|
||||
@@ -438,6 +438,7 @@ public final class WindowManagerImpl extends WindowManagerEx implements Applicat
|
||||
return myWindowWatcher.suggestParentWindow(project);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public final StatusBar getStatusBar(final Project project) {
|
||||
if (!myProject2Frame.containsKey(project)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user