bool modelCDMFolder::OpenCMakeListsFile(std::string*& result)
{
- //TODO: implement method
- return true;
+ if (this->CMakeLists == NULL)
+ {
+ result = new std::string("There's no CMakeLists file to open.");
+ return false;
+ }
+ if (!CDMUtilities::openTextEditor(this->CMakeLists->GetPath()))
+ return true;
+ else
+ {
+ result = new std::string("Couldn't open CMakeLists file.");
+ return false;
+ }
}
const bool modelCDMFolder::Refresh(std::string*& result)