dzsessona/QuickOpener-NetBeans

[Windows] Open in FileManager should select the file/dir

markiewb opened this issue · 2 comments

ACTUAL: file manager is opened, file/dir from NetBeans is NOT selected in the explorer
EXPECTED: file manager is opened, file/dir from NetBeans is selected in the explorer
See http://support.microsoft.com/kb/314853/en

IMHO this should be fixed in https://github.com/dzsessona/oscommands/blob/master/OSCommands/src/com/sessonad/oscommands/commands/Commands.java

Once dzsessona/oscommands#3 is merged, I can provide a patch and include the new jar file

diff --git a/QuickOpener/src/me/dsnet/quickopener/actions/FileSystem.java b/QuickOpener/src/me/dsnet/quickopener/actions/FileSystem.java
index 5faf775..7e34d7d 100644
--- a/QuickOpener/src/me/dsnet/quickopener/actions/FileSystem.java
+++ b/QuickOpener/src/me/dsnet/quickopener/actions/FileSystem.java
@@ -27,14 +27,14 @@

     @Override
     public void actionPerformed(ActionEvent e) {
-        File toOpen = PathFinder.getActiveFile(dataObj,true);
-        if (toOpen == null) {
+        File file = PathFinder.getActiveFile(dataObj,false);
+        if (file == null) {
             NotifyDescriptor d = new NotifyDescriptor.Message(QuickMessages.NO_FILE_IN_SELECTION,NotifyDescriptor.WARNING_MESSAGE);
             DialogDisplayer.getDefault().notify(d);
             return;
         }
         try {
-            Commands.getPlatform().browseInFileSystem(toOpen);
+            Commands.getPlatform().browseInFileSystemToFileOrDir(file);
         } catch (Exception ex) {}//ex.printStackTrace();}
     }
 }

After including #60, I can apply my patch and this issue will be solved.