navigate to p4.output

This commit is contained in:
peter
2012-08-29 13:47:43 +02:00
parent 79c4cd6117
commit 5655c96aae
@@ -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);