]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMIProjectTreeNode.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMIProjectTreeNode.cpp
index 1c9db624a2e58e1d387ccaf804e9933effca0517..8676627df6bf2717ab480dcf90e5244461a10772 100644 (file)
@@ -34,6 +34,8 @@
 #include "modelCDMIProjectTreeNode.h"
 #include <algorithm>
 
+#include "CDMUtilities.h"
+
 #include "wx/dir.h"
 
 bool modelCDMIProjectTreeNode::CompareNodeItem(const modelCDMIProjectTreeNode* x, const modelCDMIProjectTreeNode* y)
@@ -142,6 +144,11 @@ const int& modelCDMIProjectTreeNode::GetLength()
 
 const bool modelCDMIProjectTreeNode::OpenInFileExplorer(std::string*& result) const
 {
-  //TODO: implement method
-  return false;
+  if (!CDMUtilities::openFileExplorer(this->GetPath()))
+      return true;
+    else
+      {
+        result = new std::string("Couldn't open file.");
+        return false;
+      }
 }