mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
navigate to p4.output
This commit is contained in:
@@ -194,10 +194,15 @@ public class ShowFilePathAction extends AnAction {
|
||||
*
|
||||
* @param file a file or directory to show and highlight in a file manager.
|
||||
*/
|
||||
public static void openFile(@NotNull final File file) {
|
||||
public static void openFile(@NotNull File file) {
|
||||
if (!file.exists()) return;
|
||||
file = file.getAbsoluteFile();
|
||||
File parent = file.getParentFile();
|
||||
if (parent == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
doOpen(file.getParentFile(), file);
|
||||
doOpen(parent, file);
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.warn(e);
|
||||
|
||||
Reference in New Issue
Block a user