mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] dropping unnecessary I/O checks (EA-231993)
GitOrigin-RevId: c0270b1ed0f68bb578cc1aac4b8583287939841e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b73cf590dd
commit
d41cfccb7a
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.ide.actions;
|
||||
|
||||
import com.intellij.execution.configurations.GeneralCommandLine;
|
||||
@@ -134,11 +134,6 @@ public class RevealFileAction extends DumbAwareAction implements LightEditCompat
|
||||
* (note that not all platforms support highlighting).
|
||||
*/
|
||||
public static void openFile(@NotNull File file) {
|
||||
if (!file.exists()) {
|
||||
LOG.info("does not exist: " + file);
|
||||
return;
|
||||
}
|
||||
|
||||
File parent = file.getAbsoluteFile().getParentFile();
|
||||
if (parent != null) {
|
||||
doOpen(parent, file);
|
||||
@@ -152,11 +147,6 @@ public class RevealFileAction extends DumbAwareAction implements LightEditCompat
|
||||
* Opens a system file manager with given directory open in it.
|
||||
*/
|
||||
public static void openDirectory(@NotNull File directory) {
|
||||
if (!directory.isDirectory()) {
|
||||
LOG.info("not a directory: " + directory);
|
||||
return;
|
||||
}
|
||||
|
||||
doOpen(directory.getAbsoluteFile(), null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user