提交 d2b7370d 编写于 作者: L Levi Armstrong

Fix error message from showing when adding, remove and renaming files

上级 25272472
......@@ -122,7 +122,7 @@ static FolderNode *recursiveFindOrCreateFolderNode(FolderNode *folder,
// ROSProject
//
////////////////////////////////////////////////////////////////////////////////////
const int UPDATE_INTERVAL = 300;
const int UPDATE_INTERVAL = 1000;
ROSProject::ROSProject(const Utils::FileName &fileName) :
ProjectExplorer::Project(Constants::ROS_MIME_TYPE, fileName, [this]() { refresh(); }),
......
......@@ -75,6 +75,30 @@ bool ROSProjectNode::supportsAction(ProjectExplorer::ProjectAction action, const
}
}
bool ROSProjectNode::addFiles(const QStringList &filePaths, QStringList *notAdded)
{
ProjectExplorer::ProjectNode::addFiles(filePaths, notAdded);
return true;
}
bool ROSProjectNode::removeFiles(const QStringList &filePaths, QStringList *notRemoved)
{
ProjectExplorer::ProjectNode::removeFiles(filePaths, notRemoved);
return true;
}
bool ROSProjectNode::deleteFiles(const QStringList &filePaths)
{
ProjectExplorer::ProjectNode::deleteFiles(filePaths);
return true;
}
bool ROSProjectNode::renameFile(const QString &filePath, const QString &newFilePath)
{
ProjectExplorer::ProjectNode::renameFile(filePath, newFilePath);
return true;
}
ROSFolderNode::ROSFolderNode(const Utils::FileName &folderPath, const QString &displayName) : FolderNode(folderPath, ProjectExplorer::NodeType::Folder, displayName), m_repository(nullptr)
{
QString path = this->filePath().toString();
......
......@@ -45,6 +45,14 @@ public:
bool supportsAction(ProjectExplorer::ProjectAction action, const Node *node) const override;
bool addFiles(const QStringList &filePaths, QStringList *notAdded = nullptr) override;
bool removeFiles(const QStringList &filePaths, QStringList *notRemoved = nullptr) override;
bool deleteFiles(const QStringList &filePaths) override;
bool renameFile(const QString &filePath, const QString &newFilePath) override;
private:
static ProjectExplorer::FileNode *findFileNode(FolderNode *folder_node, const Utils::FileName &filePaths);
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册